Skip to content

Commit

Permalink
Merge pull request #184 from steemit/console-to-debug
Browse files Browse the repository at this point in the history
Change console.log to debugWs
  • Loading branch information
bonustrack committed Jun 27, 2017
2 parents a21d3b4 + bcc9c41 commit d81d2f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class Steem extends EventEmitter {
const id = data.id;
const request = this.requests[id];
if (!request) {
console.error('Steem.onMessage error: unknown request ', id);
debugWs('Steem.onMessage error: unknown request ', id);
return;
}
delete this.requests[id];
Expand Down Expand Up @@ -174,7 +174,7 @@ class Steem extends EventEmitter {

onMessage(message, request) {
const {api, data, resolve, reject, start_time} = request;
console.log('-- Steem.onMessage -->', message.id);
debugWs('-- Steem.onMessage -->', message.id);
const errorCause = message.error;
if (errorCause) {
const err = new Error(
Expand Down

0 comments on commit d81d2f5

Please sign in to comment.