Add silly logging

This commit is contained in:
Stefan Aebischer
2019-10-27 16:46:20 +02:00
parent b5f66480c4
commit 6da5126190
3 changed files with 8 additions and 6 deletions

View File

@@ -125,7 +125,7 @@ module.exports = class WebsocketClient extends EventEmitter {
clearTimeout(this.pongTimeout);
this.pongTimeout = null;
this.logger.debug('Sending ping', {category: 'bybit-ws'});
this.logger.silly('Sending ping', {category: 'bybit-ws'});
this.ws.send(JSON.stringify({op: 'ping'}));
this.pongTimeout = setTimeout(() => {
@@ -186,7 +186,7 @@ module.exports = class WebsocketClient extends EventEmitter {
_handleResponse(response) {
if(response.request && response.request.op === 'ping' && response.ret_msg === 'pong') {
if(response.success === true) {
this.logger.debug('pong recieved', {category: 'bybit-ws'});
this.logger.silly('pong recieved', {category: 'bybit-ws'});
clearTimeout(this.pongTimeout);
}
} else {