Fix: Event.stack initialization error (#219)

This commit is contained in:
haozibi 2020-03-31 01:16:40 +08:00 committed by GitHub
parent d9df1802de
commit 1c32ee06a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ func newEvent(w LevelWriter, level Level) *Event {
e.buf = enc.AppendBeginMarker(e.buf)
e.w = w
e.level = level
e.stack = false
return e
}