Skip to content

Commit

Permalink
初始化日志模块时应先重置beego默认的logger (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
leilei3167 authored Aug 23, 2023
1 parent 2e3aebe commit 18b6ead
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func RegisterModel() {
// RegisterLogger 注册日志
func RegisterLogger(log string) {

logs.Reset()
logs.SetLogFuncCall(true)
_ = logs.SetLogger("console")
logs.EnableFuncCallDepth(true)
Expand Down

0 comments on commit 18b6ead

Please sign in to comment.