From 8e6bd7e913b0afd624a99ef910a168df0551f627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 14 Oct 2021 19:00:03 -0400 Subject: [PATCH] refactor: show full url on error log --- src/controllers/errors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/errors.js b/src/controllers/errors.js index 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-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),