pjvds / tidy

Go lang structured logging made fast and simple
7 stars 0 forks source link

improve error logging #4

Closed pjvds closed 9 years ago

pjvds commented 9 years ago

I notice a lot of calls like:

log.WithField("error", err).Debug("flush failed")

They could be shortened with something like:

log.WithError(err).Debug("flush failed")