feat: fully disable stack
parent
c91e59456a
commit
ee76277266
2
log.go
2
log.go
|
@ -115,7 +115,7 @@ func (l *Logger) output(lev Llevel, depth int, fields H, v ...interface{}) {
|
||||||
case Lerror:
|
case Lerror:
|
||||||
if STACKSKIP == 0 {
|
if STACKSKIP == 0 {
|
||||||
data.Stack = Stack()
|
data.Stack = Stack()
|
||||||
} else {
|
} else if STACKSKIP > 0 {
|
||||||
data.Stack = StackSkip(STACKSKIP)
|
data.Stack = StackSkip(STACKSKIP)
|
||||||
}
|
}
|
||||||
data.Caller = Caller(depth)
|
data.Caller = Caller(depth)
|
||||||
|
|
Loading…
Reference in New Issue