diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index 95a42eea..a09ffd1c 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -280,6 +280,7 @@ class Cognigy extends Task { // todo inject the session config into the say task const sayTask = this._makeSayTask({text}); await sayTask.exec(cs, ep, this); + this.logger.debug({text}, 'executed say task'); }); } diff --git a/lib/tasks/cognigy/speech-config.js b/lib/tasks/cognigy/speech-config.js index b8b1aba0..b7554a14 100644 --- a/lib/tasks/cognigy/speech-config.js +++ b/lib/tasks/cognigy/speech-config.js @@ -16,9 +16,8 @@ class SpeechConfig extends Emitter { this.update(opts); } - update(opts = {}) { + update(session) { // TODO validation of session params? - const {session } = opts; if (session) { this.sessionConfig = lodash.merge( {},