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:
Thomas 2021-03-31 10:35:01 +02:00 committed by GitHub
commit a7a3e9566c

View file

@ -44,12 +44,15 @@ module.exports = Router = {
metrics.inc('unexpected-arguments', 1, { status: method })
const serializedError = { message: error.message }
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 (
[
'not authorized',
'joinLeaveEpoch mismatch',
'doc updater could not load requested ops',
'no project_id found on client'
'doc updater could not load requested ops'
].includes(error.message)
) {
logger.warn(attrs, error.message)