mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:20:55 +00:00
Fixed print format error info
This commit is contained in:
parent
830985b90b
commit
9e17f518b8
@ -274,7 +274,7 @@ func assignConfig(ac config.Configer) error {
|
||||
for adaptor, config := range BConfig.Log.Outputs {
|
||||
err := logs.SetLogger(adaptor, config)
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, "%s with the config `%s` got err:%s\n", adaptor, config, err)
|
||||
fmt.Fprintln(os.Stderr, fmt.Sprintf("%s with the config %q got err:%s", adaptor, config, err.Error()))
|
||||
}
|
||||
}
|
||||
logs.SetLogFuncCall(BConfig.Log.FileLineNum)
|
||||
|
Loading…
Reference in New Issue
Block a user