Closed ndk closed 4 months ago
This PR fixes an issue in the zerolog console writer. Specifying a non-typical value for the level field, resulting in a serialized value of less than 3 bytes, causes a panic. For instance:
zerolog
level
log := zerolog.New(zerolog.NewConsoleWriter()) log.Debug().Str("level", "-").Msg("Hello World")
This PR fixes an issue in the
zerolog
console writer. Specifying a non-typical value for thelevel
field, resulting in a serialized value of less than 3 bytes, causes a panic. For instance: