Commit 4cd24082 authored by JessonChan's avatar JessonChan

log to Stderr

parent cb0c006c
......@@ -262,7 +262,7 @@ func parseConfig(appConfigPath string) (err error) {
for adaptor, config := range BConfig.Log.Outputs {
err = logs.SetLogger(adaptor, config)
if err != nil {
fmt.Printf("%s with the config `%s` got err:%s\n", adaptor, config, err)
fmt.Fprintln(os.Stderr, "%s with the config `%s` got err:%s\n", adaptor, config, err)
}
}
logs.SetLogFuncCall(BConfig.Log.FileLineNum)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment