From 7d081843721319aed2ed87fc297902f25eb51ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 7 May 2020 12:48:39 -0400 Subject: [PATCH] fix: winston showing json object --- 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 032924acd6..0000b36b9b 100644 --- a/src/controllers/errors.js +++ b/src/controllers/errors.js @@ -53,7 +53,7 @@ exports.handleErrors = function handleErrors(err, req, res, next) { // eslint-di return res.locals.isAPI ? res.set('X-Redirect', err.path).status(200).json(err.path) : res.redirect(nconf.get('relative_path') + err.path); } - winston.error(req.path + '\n', err); + winston.error(req.path + '\n' + err.stack); res.status(status || 500);