Jelajahi Sumber

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

Jakob Ackermann 6 tahun lalu
induk
melakukan
1ff9c1e71b
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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 }