Skip to content

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

:art: fix missing parameters (#8977)

nekrondevf4f8bde3d1c1
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index 9d85353f57..0fdbac8f9d 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -434,7 +434,7 @@ func initLang() {
for k, v := range kernelLangs {
num, err := strconv.Atoi(k)
if nil != err {
- logging.LogErrorf("parse language configuration [%s] item [%d] failed [%s] failed: %s", p, num, err)
+ logging.LogErrorf("parse language configuration [%s] item [%d] failed [%s]", p, num, err)
continue
}
kernelMap[num] = v.(string)
diff --git a/kernel/model/file.go b/kernel/model/file.go
index 0834b6574f..2962d5e033 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -1610,7 +1610,7 @@ func ChangeFileTreeSort(boxID string, paths []string) {
absParentPath := filepath.Join(util.DataDir, boxID, parentPath)
files, err := os.ReadDir(absParentPath)
if nil != err {
- logging.LogErrorf("read dir [%s] failed: %s", err)
+ logging.LogErrorf("read dir [%s] failed: %s", absParentPath, err)
}
sortFolderIDs := map[string]int{}