Skip to content
Snippets Groups Projects
Commit 8ba15c9e authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

do not log error messages for 404

parent 811c9f5f
Branches
No related tags found
No related merge requests found
Pipeline #9937 passed
......@@ -151,7 +151,8 @@ app.use(function (err, req, res, next) {
res.locals.message = err.message;
res.locals.error = err;
console.error(err.stack);
if (err.status != 404)
console.error(err.stack);
// render the error page
res.status(err.status || 500);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment