Node.js based forum software built for the modern web
fix: winston showing json object
Barış Soner Uşaklı7d0818437213
diff --git a/src/controllers/errors.js b/src/controllers/errors.jsindex 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-direturn 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);