mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
add debug log
This commit is contained in:
@@ -7,6 +7,9 @@ const stripNulls = (obj) => {
|
|||||||
return obj;
|
return obj;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const defaultSpeechConfig
|
||||||
|
|
||||||
class SpeechConfig extends Emitter {
|
class SpeechConfig extends Emitter {
|
||||||
constructor({logger, ep, opts = {}}) {
|
constructor({logger, ep, opts = {}}) {
|
||||||
super();
|
super();
|
||||||
@@ -23,10 +26,9 @@ class SpeechConfig extends Emitter {
|
|||||||
changedConfig
|
changedConfig
|
||||||
);
|
);
|
||||||
merged.bargein.enable = changedConfig.bargein?.enable?.length === 0 ? [] : changedConfig.bargein?.enable;
|
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?
|
// should we override hints with empty array or leave it as it is once saved?
|
||||||
// merged.recognizer.hints = changedConfig.recognizer?.hints
|
// merged.recognizer.hints = changedConfig.recognizer?.hints
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
update(session) {
|
update(session) {
|
||||||
|
|||||||
Reference in New Issue
Block a user