chore(logging): replace console.* with new logging module

This commit is contained in:
Cole Gleason
2014-02-01 02:01:19 -06:00
parent 441c3cf1d7
commit 4494600d92
7 changed files with 33 additions and 26 deletions
+3 -2
View File
@@ -12,6 +12,7 @@ var sanitize = validator.sanitize;
var User = require('./../models/user').model;
var Group = require('./../models/group').model;
var Challenge = require('./../models/challenge').model;
var logging = require('./../logging');
var acceptablePUTPaths;
var api = module.exports;
@@ -349,7 +350,7 @@ api.buyGemsPaypalIPN = function(req, res, next) {
user.balance += 5;
//user.purchased.ads = true;
user.save();
console.log('PayPal transaction completed and user updated');
logging.info('PayPal transaction completed and user updated');
});
}
});
@@ -518,4 +519,4 @@ api.batchUpdate = function(req, res, next) {
res.json(200, {_v: response._v});
}
});
};
};