1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-25 18:00:19 +00:00

Fix: Set func call depth as 3

This commit is contained in:
Ming Deng
2020-10-06 11:52:24 +08:00
parent dc65055cf6
commit 66804324f2
2 changed files with 5 additions and 4 deletions

View File

@ -142,7 +142,7 @@ var logMsgPool *sync.Pool
func NewLogger(channelLens ...int64) *BeeLogger {
bl := new(BeeLogger)
bl.level = LevelDebug
bl.loggerFuncCallDepth = 2
bl.loggerFuncCallDepth = 3
bl.msgChanLen = append(channelLens, 0)[0]
if bl.msgChanLen <= 0 {
bl.msgChanLen = defaultAsyncMsgLen