12e1ab0f by asta.xie

beego: setLogger return error

1 parent 9c5ceb70
Showing 1 changed file with 6 additions and 2 deletions
...@@ -31,8 +31,12 @@ func SetLogFuncCall(b bool) { ...@@ -31,8 +31,12 @@ func SetLogFuncCall(b bool) {
31 var BeeLogger *logs.BeeLogger 31 var BeeLogger *logs.BeeLogger
32 32
33 // SetLogger sets a new logger. 33 // SetLogger sets a new logger.
34 func SetLogger(adaptername string, config string) { 34 func SetLogger(adaptername string, config string) error {
35 BeeLogger.SetLogger(adaptername, config) 35 err := BeeLogger.SetLogger(adaptername, config)
36 if err != nil {
37 return err
38 }
39 return nil
36 } 40 }
37 41
38 // Trace logs a message at trace level. 42 // Trace logs a message at trace level.
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!