mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-14 13:43:24 +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 })
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue