4 ms·
At the very least, you have to log that error.
by sangnoir 5y ago
At the very least, you have to log that error.
- closeparen 5y agoOur 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.