From 7cc90a3f629bd39711fe1288b01a6c351eb1b1b9 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Mon, 29 Jul 2019 15:45:01 +0800 Subject: [PATCH] Removed noise from members-ssr error logging no-issue Previously we were using the error logger, which is probably a bit extreme for these errors. This also removes the stacktrace from the logs so we don't enter fresh hell whilst developing/looking through logs. --- core/server/web/site/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/server/web/site/app.js b/core/server/web/site/app.js index 3c9e09e522..442e46aa33 100644 --- a/core/server/web/site/app.js +++ b/core/server/web/site/app.js @@ -98,7 +98,7 @@ module.exports = function setupSiteApp(options = {}) { res.writeHead(200); res.end(); }).catch((err) => { - common.logging.error(err); + common.logging.warn(err.message); res.writeHead(err.statusCode); res.end(err.message); }); @@ -108,7 +108,7 @@ module.exports = function setupSiteApp(options = {}) { res.writeHead(204); res.end(); }).catch((err) => { - common.logging.error(err); + common.logging.warn(err.message); res.writeHead(err.statusCode); res.end(err.message); }); @@ -118,7 +118,7 @@ module.exports = function setupSiteApp(options = {}) { req.member = member; next(); }).catch((err) => { - common.logging.error(err); + common.logging.warn(err.message); req.member = null; next(); });