From e63b9ec5ea02ebf5ff7ee819511e6b8868b0ecf2 Mon Sep 17 00:00:00 2001 From: Thomas Mees Date: Tue, 30 Mar 2021 12:34:25 +0200 Subject: [PATCH] Lower log level of 'no project_id found on client' messages --- services/real-time/app/js/Router.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/real-time/app/js/Router.js b/services/real-time/app/js/Router.js index 9b93517ee4..9b677e39d8 100644 --- a/services/real-time/app/js/Router.js +++ b/services/real-time/app/js/Router.js @@ -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)