From eb418a42e9ab5e0f7723ee76c5e8bab2bccfc4d2 Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Fri, 4 Feb 2022 08:10:51 +0100 Subject: [PATCH] add debug log --- lib/tasks/cognigy/speech-config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/tasks/cognigy/speech-config.js b/lib/tasks/cognigy/speech-config.js index cc7b1060..e112136c 100644 --- a/lib/tasks/cognigy/speech-config.js +++ b/lib/tasks/cognigy/speech-config.js @@ -7,6 +7,9 @@ const stripNulls = (obj) => { return obj; }; + +const defaultSpeechConfig + class SpeechConfig extends Emitter { constructor({logger, ep, opts = {}}) { super(); @@ -23,10 +26,9 @@ class SpeechConfig extends Emitter { changedConfig ); merged.bargein.enable = changedConfig.bargein?.enable?.length === 0 ? [] : changedConfig.bargein?.enable; - + this.logger.debug({merged, sessionConfig: this.sessionConfig, changedConfig}, 'merged config'); // should we override hints with empty array or leave it as it is once saved? // merged.recognizer.hints = changedConfig.recognizer?.hints - } update(session) {