mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[misc] add the rpc-method into the log context in Router._handleError
This commit is contained in:
parent
dee4749e6d
commit
1ff9c1e71b
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ module.exports = Router = {
|
||||||
}
|
}
|
||||||
attrs.client_id = client.id
|
attrs.client_id = client.id
|
||||||
attrs.err = error
|
attrs.err = error
|
||||||
|
attrs.method = method
|
||||||
if (error.name === 'CodedError') {
|
if (error.name === 'CodedError') {
|
||||||
logger.warn(attrs, error.message)
|
logger.warn(attrs, error.message)
|
||||||
const serializedError = { message: error.message, code: error.info.code }
|
const serializedError = { message: error.message, code: error.info.code }
|
||||||
|
|
Loading…
Reference in a new issue