I think this is an error, It was discovered after upgrading from 1.26.1 to 1.28.0:
Fatal() here
|
return l.newEvent(FatalLevel, func(msg string) { os.Exit(1) }) |
calls newEvent
|
func (l *Logger) newEvent(level Level, done func(string)) *Event { |
with the done paremeter being os.Exit(1) so here even the log is disabled, done is executed which was not like this before:
I think this is an error, It was discovered after upgrading from 1.26.1 to 1.28.0:
Fatal()herezerolog/log.go
Line 367 in d894f12
calls
newEventzerolog/log.go
Line 444 in d894f12
with the
doneparemeter beingos.Exit(1)so here even the log is disabled,doneis executed which was not like this before:zerolog/log.go
Line 448 in d894f12