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