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
// A common pattern is to re-use fields between logging statements by re-using// the logrus.Entry returned from WithFields()contextLogger:=log.WithFields(log.Fields{
"common": "this is a common field",
"other": "I also should be logged always",
})
so that might be an option too. Unless you think it should be addressed in this PR I'll take a TODO and file an issue to clean that up.
nit: Seeing this set of fields in a number of locations, I wonder if this should be moved to a struct that can output a
log.Fields
.Originally posted by @ajvb in #782 (comment)
The text was updated successfully, but these errors were encountered: