Closed Dragomir-Ivanov closed 5 years ago
LogLevelDebug
is still 0, the trace is now -1. What does the trace say?
Actually you're right, we use -1 so we don't renumber levels in https://github.com/rs/zerolog/pull/158, but the way it has been added shifted everything. I will push a quick fix, sorry about that.
Cool, thanks @rs ! Closing.
With the latest
zerolog
versionsTraceLevel Level = -1
is introduced, causingDebugLevel
to go from0
to1
. This leads to panicking examples because of this fragment of code:With
LogLevelDebug
being0
inrest-layer
the automatic remap withzerolog.Level(level)
panics because there is no more0
level inzerolog
.What is the best course of action? Introducing
LogLevelTrace
inrest-layer
mimickingzerolog
and probably causing breaking change, because of tyingrest-layer
with newest versions ofzerolog
or manual re-translation in the above callback?