mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-18 17:34:21 +00:00
add debug log
This commit is contained in:
1 parent
57ba79f908
commit
eb418a42e9
1 file changed
+4
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user