You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Err starts a new message with error level with err as a field if not nil or
// with info level if err is nil.
//
// You must call Msg on the returned event in order to send the event.
func Err(err error) *zerolog.Event {
return Logger.Err(err)
}
To get desired logging every log.Err(err) line should be changed to log.Error().Msgf("%v", err)
The text was updated successfully, but these errors were encountered:
From source:
To get desired logging every
log.Err(err)
line should be changed tolog.Error().Msgf("%v", err)
The text was updated successfully, but these errors were encountered: