From 4cd2408248fa35759dec7cee39a5668d256b5d2f Mon Sep 17 00:00:00 2001 From: JessonChan Date: Wed, 13 Apr 2016 19:41:07 +0800 Subject: [PATCH] log to Stderr --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index c4bafed7..3335ab33 100644 --- a/config.go +++ b/config.go @@ -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)