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;
|
||||
};
|
||||
|
||||
|
||||
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