Fix Fatal and Panic not terminating to program
This commit is contained in:
parent
46cd35d1f2
commit
3f6ca6688c
1
log.go
1
log.go
@ -278,6 +278,7 @@ func (l Logger) newEvent(level Level, addLevelField bool, done func(string)) *Ev
|
|||||||
lvl = level
|
lvl = level
|
||||||
}
|
}
|
||||||
e := newEvent(l.w, lvl, enabled)
|
e := newEvent(l.w, lvl, enabled)
|
||||||
|
e.done = done
|
||||||
if addLevelField {
|
if addLevelField {
|
||||||
e.Str(LevelFieldName, level.String())
|
e.Str(LevelFieldName, level.String())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user