mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-18 15:23:22 +00:00
Merge pull request #211 from overleaf/tm-mute-project-id-error
Lower log level of 'no project_id found on client' messages
This commit is contained in:
commit
a7a3e9566c
1 changed files with 5 additions and 2 deletions
|
@ -44,12 +44,15 @@ module.exports = Router = {
|
||||||
metrics.inc('unexpected-arguments', 1, { status: method })
|
metrics.inc('unexpected-arguments', 1, { status: method })
|
||||||
const serializedError = { message: error.message }
|
const serializedError = { message: error.message }
|
||||||
callback(serializedError)
|
callback(serializedError)
|
||||||
|
} else if (error.message === 'no project_id found on client') {
|
||||||
|
logger.debug(attrs, error.message)
|
||||||
|
const serializedError = { message: error.message }
|
||||||
|
callback(serializedError)
|
||||||
} else if (
|
} else if (
|
||||||
[
|
[
|
||||||
'not authorized',
|
'not authorized',
|
||||||
'joinLeaveEpoch mismatch',
|
'joinLeaveEpoch mismatch',
|
||||||
'doc updater could not load requested ops',
|
'doc updater could not load requested ops'
|
||||||
'no project_id found on client'
|
|
||||||
].includes(error.message)
|
].includes(error.message)
|
||||||
) {
|
) {
|
||||||
logger.warn(attrs, error.message)
|
logger.warn(attrs, error.message)
|
||||||
|
|
Loading…
Reference in a new issue