Add textRequestHandler tracking to try to find duplicate text problem

This commit is contained in:
Ian Webster 2014-03-30 14:55:10 -07:00
parent e1663f1d85
commit db80268004

1
app.js
View File

@ -57,6 +57,7 @@ function textRequestHandler(req, res, number, region) {
return;
}
var ip = req.header('X-Real-IP');// || req.connection.remoteAddress;
mpq.track('textRequestHandler entry', {number: req.body.number, message: req.body.message, ip: ip, region: region});
var message = req.body.message;
if (message.indexOf('http') === 0) {