优化日志堆栈输出

This commit is contained in:
liwei1dao 2022-08-16 16:08:25 +08:00
parent 030eb04f44
commit f51cd352f1

View File

@ -194,6 +194,7 @@ func (this *Logger) check(level Loglevel, msg string, args ...Field) (entry *Ent
entry.Caller.File = frame.File
entry.Caller.Line = frame.Line
entry.Caller.Function = frame.Function
entry.Caller.Stack = ""
}
if addStack {
buffer := pools.BufferPoolGet()