From ca619af41a3d1cf7ed222eeee4e1003bf72e4508 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Mon, 1 Mar 2021 16:03:08 +0000 Subject: [PATCH] Removed warning logging from members 'middleware' refs https://github.com/TryGhost/Team/issues/498 This was filling up logs with less than useful information - for every single request made by a non-member to the frontend. Be gone! --- core/server/services/members/middleware.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/server/services/members/middleware.js b/core/server/services/members/middleware.js index 9ea569ff39..7d3dfedef0 100644 --- a/core/server/services/members/middleware.js +++ b/core/server/services/members/middleware.js @@ -20,7 +20,6 @@ const loadMemberSession = async function (req, res, next) { res.locals.member = req.member; next(); } catch (err) { - logging.warn(err.message); Object.assign(req, {member: null}); next(); } @@ -32,7 +31,6 @@ const getIdentityToken = async function (req, res) { res.writeHead(200); res.end(token); } catch (err) { - logging.warn(err.message); res.writeHead(err.statusCode); res.end(err.message); } @@ -44,7 +42,6 @@ const deleteSession = async function (req, res) { res.writeHead(204); res.end(); } catch (err) { - logging.warn(err.message); res.writeHead(err.statusCode); res.end(err.message); } @@ -59,7 +56,6 @@ const getMemberData = async function (req, res) { res.json(null); } } catch (err) { - logging.warn(err.message); res.writeHead(err.statusCode); res.end(err.message); } @@ -81,7 +77,6 @@ const updateMemberData = async function (req, res) { res.json(null); } } catch (err) { - logging.warn(err.message); res.writeHead(err.statusCode); res.end(err.message); }