-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
refactoringCode refactoringCode refactoring
Description
From source:
// 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)
Metadata
Metadata
Assignees
Labels
refactoringCode refactoringCode refactoring