From 5c32523b53bff21f0fced9b67de0e36258d69d1f Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 7 Aug 2019 09:45:39 +0100 Subject: [PATCH] Merge pull request #2050 from overleaf/bg-fix-session-logging-error fix error in session logging GitOrigin-RevId: e31ac3585f4c502a04602e9a49445319502c5d52 --- services/web/app/src/infrastructure/Server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/infrastructure/Server.js b/services/web/app/src/infrastructure/Server.js index 9b1e622079..9d85e5092d 100644 --- a/services/web/app/src/infrastructure/Server.js +++ b/services/web/app/src/infrastructure/Server.js @@ -151,7 +151,9 @@ webRouter.use(function(req, res, next) { UserSessionsManager.touch( AuthenticationController.getSessionUser(req), err => { - logger.err({ err }, 'error extending user session') + if (err) { + logger.err({ err }, 'error extending user session') + } } ) }