From 1ff9c1e71b3f0704d63af8c2da4cfe6402655905 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Thu, 27 Aug 2020 10:28:44 +0100 Subject: [PATCH] [misc] add the rpc-method into the log context in Router._handleError --- services/real-time/app/js/Router.js | 1 + 1 file changed, 1 insertion(+) diff --git a/services/real-time/app/js/Router.js b/services/real-time/app/js/Router.js index ec6de5136f..1aae3ea64e 100644 --- a/services/real-time/app/js/Router.js +++ b/services/real-time/app/js/Router.js @@ -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 }