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

This commit is contained in:
Jakob Ackermann 2020-08-27 10:28:44 +01:00
parent dee4749e6d
commit 1ff9c1e71b

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 }