mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 10:52:34 +08:00
初始化日志模块时应先重置beego默认的logger (#823)
This commit is contained in:
parent
2e3aebe315
commit
18b6ead94d
@ -148,6 +148,7 @@ func RegisterModel() {
|
||||
// RegisterLogger 注册日志
|
||||
func RegisterLogger(log string) {
|
||||
|
||||
logs.Reset()
|
||||
logs.SetLogFuncCall(true)
|
||||
_ = logs.SetLogger("console")
|
||||
logs.EnableFuncCallDepth(true)
|
||||
|
Loading…
Reference in New Issue
Block a user