mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 13:43:41 +01:00
[misc] add the rpc-method into the log context in Router._handleError
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user