mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
refactor: show full url on error log
This commit is contained in:
@@ -66,7 +66,7 @@ exports.handleErrors = function handleErrors(err, req, res, next) { // eslint-di
|
|||||||
return helpers.formatApiResponse(status, res, err);
|
return helpers.formatApiResponse(status, res, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
winston.error(`${req.path}\n${err.stack}`);
|
winston.error(`${req.originalUrl}\n${err.stack}`);
|
||||||
res.status(status || 500);
|
res.status(status || 500);
|
||||||
const data = {
|
const data = {
|
||||||
path: validator.escape(path),
|
path: validator.escape(path),
|
||||||
|
|||||||
Reference in New Issue
Block a user