refactor: show full url on error log

isekai-main
Barış Soner Uşaklı 3 years ago
parent 1dba75e9c9
commit 8e6bd7e913

@ -66,7 +66,7 @@ exports.handleErrors = function handleErrors(err, req, res, next) { // eslint-di
return helpers.formatApiResponse(status, res, err);
}
winston.error(`${req.path}\n${err.stack}`);
winston.error(`${req.originalUrl}\n${err.stack}`);
res.status(status || 500);
const data = {
path: validator.escape(path),

Loading…
Cancel
Save