Fix Fatal and Panic not terminating to program

This commit is contained in:
Olivier Poitrey 2017-06-06 10:23:34 -07:00
parent 46cd35d1f2
commit 3f6ca6688c
1 changed files with 1 additions and 0 deletions

1
log.go
View File

@ -278,6 +278,7 @@ func (l Logger) newEvent(level Level, addLevelField bool, done func(string)) *Ev
lvl = level
}
e := newEvent(l.w, lvl, enabled)
e.done = done
if addLevelField {
e.Str(LevelFieldName, level.String())
}