上传日志堆栈优化

This commit is contained in:
liwei1dao 2022-08-16 16:10:34 +08:00
parent f51cd352f1
commit eff1855242

View File

@ -199,9 +199,7 @@ func (this *Logger) check(level Loglevel, msg string, args ...Field) (entry *Ent
if addStack { if addStack {
buffer := pools.BufferPoolGet() buffer := pools.BufferPoolGet()
defer buffer.Free() defer buffer.Free()
stackfmt := newStackFormatter(buffer) stackfmt := newStackFormatter(buffer)
stackfmt.FormatFrame(frame) stackfmt.FormatFrame(frame)
if more { if more {
stackfmt.FormatStack(stack) stackfmt.FormatStack(stack)