From ee76277266c38cf621e1749f5322a52e1778f3a0 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Mon, 8 Nov 2021 16:49:23 +0800 Subject: [PATCH] feat: fully disable stack --- log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.go b/log.go index 561b9e7..7843125 100644 --- a/log.go +++ b/log.go @@ -115,7 +115,7 @@ func (l *Logger) output(lev Llevel, depth int, fields H, v ...interface{}) { case Lerror: if STACKSKIP == 0 { data.Stack = Stack() - } else { + } else if STACKSKIP > 0 { data.Stack = StackSkip(STACKSKIP) } data.Caller = Caller(depth)