Closed jamesrom closed 4 years ago
A convenience function to help with error handling could be useful.
if err != nil { log.From(ctx).Error("Couldn't foo", err) return err }
Should produce something like
msg="Couldn't foo" error_message="connection timed out"
Seems pretty useful. Let's add it. Semantically, I think it should be just a variant of Info, not a different "level".
Info
A convenience function to help with error handling could be useful.
Should produce something like