diff --git a/lib/utils/background-task-manager.js b/lib/utils/background-task-manager.js index dd8252bd..81710b97 100644 --- a/lib/utils/background-task-manager.js +++ b/lib/utils/background-task-manager.js @@ -65,18 +65,17 @@ class BackgroundTaskManager extends Emitter { // Remove task from managed List this.tasks.delete(type); } else { - this.logger.info(`stopping background task, ${type} is not running, skipped`); + this.logger.debug(`stopping background task, ${type} is not running, skipped`); } } stopAll() { - this.logger.info('BackgroundTaskManager:stopAll'); + this.logger.debug('BackgroundTaskManager:stopAll'); for (const key of this.tasks.keys()) { this.stop(key); } } - // Initiate Task // Initiate Listen async _initListen(opts, bugname = 'jambonz-background-listen', ignoreCustomerData = false, type = 'listen') { let task; @@ -176,7 +175,7 @@ class BackgroundTaskManager extends Emitter { } _taskCompleted(type, task) { - this.logger.info({type, task}, 'BackgroundTaskManager:_taskCompleted: task completed'); + this.logger.debug({type, task}, 'BackgroundTaskManager:_taskCompleted: task completed'); task.removeAllListeners(); task.span.end(); this.tasks.delete(type); @@ -189,7 +188,7 @@ class BackgroundTaskManager extends Emitter { } _bargeInTaskCompleted(evt) { - this.logger.info({evt}, 'BackgroundTaskManager:_bargeInTaskCompleted on event from background bargeIn'); + this.logger.debug({evt}, 'BackgroundTaskManager:_bargeInTaskCompleted on event from background bargeIn'); this.emit('bargeIn-done', evt); } }