[misc] add the rpc-method into the log context in Router._handleError

This commit is contained in:
Jakob Ackermann
2020-08-27 11:51:55 +01:00
parent dee4749e6d
commit 1ff9c1e71b
+1
View File
@@ -33,6 +33,7 @@ module.exports = Router = {
}
attrs.client_id = client.id
attrs.err = error
attrs.method = method
if (error.name === 'CodedError') {
logger.warn(attrs, error.message)
const serializedError = { message: error.message, code: error.info.code }