mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Add logging https://ld246.com/article/1732931024696
This commit is contained in:
@@ -622,6 +622,7 @@ func ImportData(zipPath string) (err error) {
|
||||
lockSync()
|
||||
defer unlockSync()
|
||||
|
||||
logging.LogInfof("import data from [%s]", zipPath)
|
||||
baseName := filepath.Base(zipPath)
|
||||
ext := filepath.Ext(baseName)
|
||||
baseName = strings.TrimSuffix(baseName, ext)
|
||||
@@ -656,6 +657,7 @@ func ImportData(zipPath string) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
logging.LogInfof("import data from [%s] done", zipPath)
|
||||
IncSync()
|
||||
FullReindex()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user