add debug log

This commit is contained in:
akirilyuk
2022-02-04 08:10:51 +01:00
parent 57ba79f908
commit eb418a42e9

View File

@@ -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) {