chore(errors): send req.body before JSON.parsing @colegleason

This commit is contained in:
Tyler Renelle 2014-01-18 17:54:29 -07:00
parent efdd85fe2e
commit 39f0961b75

View file

@ -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'),