diff --git a/commands/command.go b/commands/command.go index dbdea324..63a01a2a 100644 --- a/commands/command.go +++ b/commands/command.go @@ -148,6 +148,7 @@ func RegisterModel() { // RegisterLogger 注册日志 func RegisterLogger(log string) { + logs.Reset() logs.SetLogFuncCall(true) _ = logs.SetLogger("console") logs.EnableFuncCallDepth(true)