mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05: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
5c1f44d1b3
commit
ca619af41a
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue