Go: refactor log and config (#17684)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-08-02 20:55:19 +08:00
committed by GitHub
parent d4ceeee4ed
commit b2521ebf51
20 changed files with 78 additions and 71 deletions

View File

@@ -46,7 +46,7 @@ func main() {
logLevel = "info"
}
if err = common.Init(logLevel, common.FileOutput{}, "ragflow-cli"); err != nil {
if err = common.InitLogger(logLevel, common.FileOutput{}, "ragflow-cli"); err != nil {
fmt.Printf("Warning: Failed to initialize logger: %v\n", err)
}