add more logs

This commit is contained in:
akirilyuk
2022-02-02 22:22:06 +01:00
parent 78869e4bb8
commit b1683bc294
2 changed files with 2 additions and 2 deletions

View File

@@ -280,6 +280,7 @@ class Cognigy extends Task {
// todo inject the session config into the say task // todo inject the session config into the say task
const sayTask = this._makeSayTask({text}); const sayTask = this._makeSayTask({text});
await sayTask.exec(cs, ep, this); await sayTask.exec(cs, ep, this);
this.logger.debug({text}, 'executed say task');
}); });
} }

View File

@@ -16,9 +16,8 @@ class SpeechConfig extends Emitter {
this.update(opts); this.update(opts);
} }
update(opts = {}) { update(session) {
// TODO validation of session params? // TODO validation of session params?
const {session } = opts;
if (session) { if (session) {
this.sessionConfig = lodash.merge( this.sessionConfig = lodash.merge(
{}, {},