feat: fully disable stack

master
Evan Chen 2021-11-08 16:49:23 +08:00
parent c91e59456a
commit ee76277266
1 changed files with 1 additions and 1 deletions

2
log.go
View File

@ -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)