parent
31689a002d
commit
2bbc6ae9ff
9
log.go
9
log.go
|
@ -115,10 +115,11 @@ func (l *Logger) output(lev Llevel, depth int, fields H, v ...interface{}) {
|
||||||
if !PROD {
|
if !PROD {
|
||||||
data.Stack = stack()
|
data.Stack = stack()
|
||||||
}
|
}
|
||||||
case Ldebug:
|
// disable stack trace on debug
|
||||||
if !PROD {
|
// case Ldebug:
|
||||||
data.Stack = stack()
|
// if !PROD {
|
||||||
}
|
// data.Stack = stack()
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
lock.Lock()
|
lock.Lock()
|
||||||
defer lock.Unlock()
|
defer lock.Unlock()
|
||||||
|
|
Loading…
Reference in New Issue