News for hackers. Stuff that matters.
Re:Twelve Years of Go by closeparen on Wednesday November 10, 2021 @10:12PM (#29184062)
Our coding convention (and I happen to agree) is that the outermost layer to touch the error is the one to log it. In this case the HTTP handler, or perhaps a gRPC middleware. You don't want to be logging errors as you propagate them, or the logs will show the same error at a bunch of different call sites vs. one complete picture of what happened.

There are no comments on this comment yet.