mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
🎨 Add mobile.log file to diagnose mobile issues https://github.com/siyuan-note/siyuan/issues/10270
This commit is contained in:
parent
c76b1f3252
commit
8c5f8d2bc4
5 changed files with 15 additions and 4 deletions
|
|
@ -328,6 +328,14 @@ func ExportSystemLog() (zipPath string) {
|
|||
}
|
||||
}
|
||||
|
||||
mobileLog := filepath.Join(util.TempDir, "mobile.log")
|
||||
if gulu.File.IsExist(mobileLog) {
|
||||
to := filepath.Join(exportFolder, "mobile.log")
|
||||
if err := filelock.Copy(mobileLog, to); nil != err {
|
||||
logging.LogErrorf("copy mobile log from [%s] to [%s] failed: %s", err, mobileLog, to)
|
||||
}
|
||||
}
|
||||
|
||||
zipPath = exportFolder + ".zip"
|
||||
zip, err := gulu.Zip.Create(zipPath)
|
||||
if nil != err {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue