Commit d81d2f5b authored by Fabien's avatar Fabien Committed by GitHub

Merge pull request #184 from steemit/console-to-debug

Change console.log to debugWs
parents a21d3b49 bcc9c419
......@@ -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];
......@@ -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(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment