Skip to content

Commit

Permalink
Merge pull request #1 from mindoc-org/master
Browse files Browse the repository at this point in the history
初始化日志模块时应先重置beego默认的logger (mindoc-org#823)
  • Loading branch information
pugwoo authored Oct 31, 2023
2 parents 2e3aebe + 18b6ead commit 1265b0c
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 1265b0c

Please sign in to comment.