Node.js based forum software built for the modern web
refactor: show full url on error log
Barış Soner Uşaklı8e6bd7e913b0
diff --git a/src/controllers/errors.js b/src/controllers/errors.jsindex eace35c6c0..f77e64a25a 100644--- a/src/controllers/errors.js+++ b/src/controllers/errors.js@@ -66,7 +66,7 @@ exports.handleErrors = function handleErrors(err, req, res, next) { // eslint-direturn 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),