瀏覽代碼

:art: fix missing parameters (#8977)

Co-authored-by: Heiko Besemann <heiko.besemann@qbeyond.de>
nekrondev 1 年之前
父節點
當前提交
f4f8bde3d1
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      kernel/model/conf.go
  2. 1 1
      kernel/model/file.go

+ 1 - 1
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)

+ 1 - 1
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{}