actually, just take out request logging and demote other noisy stuff to debug

This commit is contained in:
Josh Harvey 2014-04-27 11:46:32 -04:00
parent 22fb9daaa8
commit 709b472ecc
2 changed files with 5 additions and 24 deletions

View file

@ -17,7 +17,7 @@ var Trader = module.exports = function (db) {
this.db = db;
this.rates = {};
this.logger = new (winston.Logger)({
transports: [new (winston.transports.Console)()]
transports: [new (winston.transports.Console)({level: 'info'})]
});
this._tradeQueue = [];
@ -278,7 +278,7 @@ Trader.prototype.stopPolling = function () {
Trader.prototype.pollBalance = function (callback) {
var self = this;
self.logger.info('collecting balance');
self.logger.debug('collecting balance');
async.parallel({
transferBalance: self.transferExchange.balance.bind(self.transferExchange),
@ -295,7 +295,7 @@ Trader.prototype.pollBalance = function (callback) {
}
balance.timestamp = Date.now();
self.logger.info('Balance update:', balance);
self.logger.debug('Balance update:', balance);
self.balance = balance;
return callback && callback(null, balance);
@ -306,13 +306,13 @@ Trader.prototype.pollRate = function (callback) {
var self = this;
var currency = self.config.exchanges.settings.currency;
self.logger.info('polling for rate...');
self.logger.debug('polling for rate...');
self.tickerExchange.ticker(currency, function(err, rate) {
if (err) {
return callback && callback(err);
}
self.logger.info('Rate update:', rate);
self.logger.debug('Rate update:', rate);
self.rates[currency] = {rate: rate, timestamp: new Date()};
return callback && callback(null, self.rates[currency]);
});