mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
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:
parent
d8fa54024b
commit
41d9610aef
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user