Просмотр исходного кода

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

Jakob Ackermann 6 лет назад
Родитель
Сommit
1ff9c1e71b
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      services/real-time/app/js/Router.js

+ 1 - 0
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 }