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) {
var BeeLogger *logs.BeeLogger
// SetLogger sets a new logger.
func SetLogger(adaptername string, config string) {
BeeLogger.SetLogger(adaptername, config)
func SetLogger(adaptername string, config string) error {
err := BeeLogger.SetLogger(adaptername, config)
if err != nil {
return err
}
return nil
}
// 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!