From 39f0961b75841e4661d2b9d70d7683a003645277 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sat, 18 Jan 2014 17:54:29 -0700 Subject: [PATCH] chore(errors): send req.body before JSON.parsing @colegleason --- src/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 0fb599fde9..3b50eeb4b5 100644 --- a/src/utils.js +++ b/src/utils.js @@ -66,7 +66,8 @@ module.exports.errorHandler = function(err, req, res, next) { "\n\noriginalUrl: " + req.originalUrl + "\n\nauth: " + req.headers['x-api-user'] + ' | ' + req.headers['x-api-key'] + "\n\nheaders: " + JSON.stringify(req.headers) + - "\n\nbody: " + JSON.stringify(req.body); + "\n\nbody: " + req.body; +// "\n\nbody: " + JSON.stringify(req.body); module.exports.sendEmail({ from: "HabitRPG <" + nconf.get('SMTP_USER') + ">", to: nconf.get('ADMIN_EMAIL') || nconf.get('SMTP_USER'),