add logs
This commit is contained in:
parent
3718493277
commit
391898a06e
|
@ -54,7 +54,7 @@ var config = {
|
|||
bch: {
|
||||
livenet: {
|
||||
provider: 'insight',
|
||||
url: 'https://cashexplorer.bitcoin.com',
|
||||
url: 'http://localhost:3001',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -45,9 +45,11 @@ Insight.prototype._doRequest = function(args, cb) {
|
|||
};
|
||||
|
||||
var s = JSON.stringify(args);
|
||||
if ( s.length > 100 )
|
||||
s= s.substr(0,100) + '...';
|
||||
// if ( s.length > 100 )
|
||||
// s= s.substr(0,100) + '...';
|
||||
log.debug('', 'Insight Q: %s', s);
|
||||
|
||||
console.log('[insight.js.51]'); //TODO
|
||||
requestList(_.defaults(args, opts), cb);
|
||||
};
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ var requestList = function(args, cb) {
|
|||
}
|
||||
|
||||
result = [err, res, body];
|
||||
console.log('[request-list.js.62:body:]',body); //TODO
|
||||
return a_cb();
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue