func printError()

in helpers.go [19:28]


func printError(r *http.Request, err error) {
	if r != nil {
		log.WithFields(log.Fields{
			"method": r.Method,
			"uri":    scrubURLParams(r.RequestURI),
		}).WithError(err).Error("error")
	} else {
		log.WithError(err).Error("unknown error")
	}
}