mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
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.
This commit is contained in:
parent
4428822253
commit
7cc90a3f62
1 changed files with 3 additions and 3 deletions
|
@ -98,7 +98,7 @@ module.exports = function setupSiteApp(options = {}) {
|
||||||
res.writeHead(200);
|
res.writeHead(200);
|
||||||
res.end();
|
res.end();
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
common.logging.error(err);
|
common.logging.warn(err.message);
|
||||||
res.writeHead(err.statusCode);
|
res.writeHead(err.statusCode);
|
||||||
res.end(err.message);
|
res.end(err.message);
|
||||||
});
|
});
|
||||||
|
@ -108,7 +108,7 @@ module.exports = function setupSiteApp(options = {}) {
|
||||||
res.writeHead(204);
|
res.writeHead(204);
|
||||||
res.end();
|
res.end();
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
common.logging.error(err);
|
common.logging.warn(err.message);
|
||||||
res.writeHead(err.statusCode);
|
res.writeHead(err.statusCode);
|
||||||
res.end(err.message);
|
res.end(err.message);
|
||||||
});
|
});
|
||||||
|
@ -118,7 +118,7 @@ module.exports = function setupSiteApp(options = {}) {
|
||||||
req.member = member;
|
req.member = member;
|
||||||
next();
|
next();
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
common.logging.error(err);
|
common.logging.warn(err.message);
|
||||||
req.member = null;
|
req.member = null;
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue