From cf821569b3c2f71c77e641242692de7fbe5f10b1 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Sun, 2 Oct 2022 22:36:27 +0100 Subject: [PATCH] minor logging changes --- lib/utils/ws-requestor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/ws-requestor.js b/lib/utils/ws-requestor.js index ef7ac6d0..16835f25 100644 --- a/lib/utils/ws-requestor.js +++ b/lib/utils/ws-requestor.js @@ -138,7 +138,7 @@ class WsRequestor extends BaseRequestor { success: (response) => { clearTimeout(timer); const rtt = this._roundTrip(startAt); - this.logger.info({response}, `WsRequestor:request ${url} succeeded in ${rtt}ms`); + this.logger.debug({response}, `WsRequestor:request ${url} succeeded in ${rtt}ms`); this.stats.histogram('app.hook.ws_response_time', rtt, ['hook_type:app']); resolve(response); }, @@ -286,7 +286,7 @@ class WsRequestor extends BaseRequestor { const obj = JSON.parse(content); const {type, msgid, command, call_sid = this.call_sid, queueCommand = false, data} = obj; - this.logger.debug({obj}, 'WsRequestor:request websocket: received'); + //this.logger.debug({obj}, 'WsRequestor:request websocket: received'); assert.ok(type, 'type property not supplied'); switch (type) { @@ -323,7 +323,7 @@ class WsRequestor extends BaseRequestor { _recvCommand(msgid, command, call_sid, queueCommand, data) { // TODO: validate command - this.logger.info({msgid, command, call_sid, queueCommand, data}, 'received command'); + this.logger.debug({msgid, command, call_sid, queueCommand, data}, 'received command'); this.emit('command', {msgid, command, call_sid, queueCommand, data}); } }