Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
rm log references in gdax
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Jul 5, 2018
1 parent 03caaa7 commit f8f5630
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions exchange/wrappers/gdax.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ Trader.prototype.getTrades = function(since, callback, descending) {
if (moment.utc(last.time) < moment.utc(since)) {
this.scanbackTid = last.trade_id;
} else {
log.debug('Scanning backwards...' + last.time);
console.log('Scanning backwards...' + last.time);
setTimeout(() => {
let handler = cb =>
this.gdax_public.getProductTrades(
Expand All @@ -315,7 +315,7 @@ Trader.prototype.getTrades = function(since, callback, descending) {

if (this.scanbackTid) {
// if scanbackTid is set we need to move forward again
log.debug(
console.log(
'Backwards: ' +
last.time +
' (' +
Expand Down Expand Up @@ -348,7 +348,7 @@ Trader.prototype.getTrades = function(since, callback, descending) {
this.scanback = false;
this.scanbackTid = 0;

log.debug('Scan finished: data found:' + this.scanbackResults.length);
console.log('Scan finished: data found:' + this.scanbackResults.length);
callback(null, this.scanbackResults);

this.scanbackResults = [];
Expand All @@ -374,8 +374,8 @@ Trader.prototype.getTrades = function(since, callback, descending) {
_.bind(process, this)
);
} else {
log.debug('Scanning back in the history needed...');
log.debug(moment.utc(since).format());
console.log('Scanning back in the history needed...');
console.log(moment.utc(since).format());
}
}

Expand Down

0 comments on commit f8f5630

Please sign in to comment.