From 6d0168364caa5ade7e506f25f8088b9185dfdcf5 Mon Sep 17 00:00:00 2001 From: Cole Gleason Date: Mon, 20 Jan 2014 11:44:10 -0600 Subject: [PATCH] Revert "chore(errors): send req.body before JSON.parsing @colegleason" This reverts commit 39f0961b75841e4661d2b9d70d7683a003645277. @lefnire, this was just sending `[object Object]` instead of `{}`. We want the JSON.strigify, actually. --- src/utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils.js b/src/utils.js index 3b50eeb4b5..0fb599fde9 100644 --- a/src/utils.js +++ b/src/utils.js @@ -66,8 +66,7 @@ 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: " + req.body; -// "\n\nbody: " + JSON.stringify(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'),