mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
log error path as well
This commit is contained in:
@@ -175,7 +175,8 @@ function handleErrors(err, req, res, next) {
|
|||||||
// we may use properties of the error object
|
// we may use properties of the error object
|
||||||
// here and next(err) appropriately, or if
|
// here and next(err) appropriately, or if
|
||||||
// we possibly recovered from the error, simply next().
|
// we possibly recovered from the error, simply next().
|
||||||
console.error(err.stack);
|
//console.error(err.stack, req.path);
|
||||||
|
winston.error(req.path + '\n', err.stack);
|
||||||
|
|
||||||
var status = err.status || 500;
|
var status = err.status || 500;
|
||||||
res.status(status);
|
res.status(status);
|
||||||
|
|||||||
Reference in New Issue
Block a user