Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Add logging https://ld246.com/article/1732931024696

Daniel654d6ee587ce
diff --git a/kernel/model/import.go b/kernel/model/import.go
index 47edb77573..8efc7c7fb3 100644
--- a/kernel/model/import.go
+++ b/kernel/model/import.go
@@ -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