From 6b83d0fb546b5471f6ad352e09b7cced99661f26 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Sat, 20 Nov 2021 11:36:18 -0500 Subject: [PATCH] minor logging --- lib/tasks/sip_refer.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/tasks/sip_refer.js b/lib/tasks/sip_refer.js index cbf5bb95..9a42fc1b 100644 --- a/lib/tasks/sip_refer.js +++ b/lib/tasks/sip_refer.js @@ -39,7 +39,6 @@ class TaskSipRefer extends Task { /* if we fail, fall through to next verb. If success, we should get BYE from far end */ if (this.referStatus === 202) { - this.logger.info('waiting for eventual BYE'); await this.awaitTaskDone(); } else await this.performAction({refer_status: this.referStatus}); @@ -58,13 +57,13 @@ class TaskSipRefer extends Task { res.send(200); const contentType = req.get('Content-Type'); - this.logger.info({body: req.body}, `TaskSipRefer:_handleNotify got ${contentType}`); + this.logger.debug({body: req.body}, `TaskSipRefer:_handleNotify got ${contentType}`); if (contentType === 'message/sipfrag') { const arr = /SIP\/2\.0\s+(\d+)/.exec(req.body); if (arr) { const status = arr[1]; - this.logger.info(`call got status ${status}`); + this.logger.debug(`TaskSipRefer:_handleNotify: call got status ${status}`); if (this.eventHook) { await cs.requestor.request(this.eventHook, {event: 'transfer-status', call_status: status}); }