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!
This commit is contained in:
Fabien O'Carroll 2021-03-01 16:03:08 +00:00
parent d8fa54024b
commit 41d9610aef

View File

@ -15,7 +15,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();
}
@ -27,7 +26,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);
}
@ -39,7 +37,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);
}
@ -54,7 +51,6 @@ const getMemberData = async function (req, res) {
res.json(null);
}
} catch (err) {
logging.warn(err.message);
res.writeHead(err.statusCode);
res.end(err.message);
}
@ -76,7 +72,6 @@ const updateMemberData = async function (req, res) {
res.json(null);
}
} catch (err) {
logging.warn(err.message);
res.writeHead(err.statusCode);
res.end(err.message);
}