mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
feat/952: removed unnecessary condition which is not logging the target_sid (#953)
This commit is contained in:
@@ -171,16 +171,6 @@ class TaskSay extends TtsTask {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
ep.once('playback-stop', (evt) => {
|
ep.once('playback-stop', (evt) => {
|
||||||
this.logger.debug({evt}, 'Say got playback-stop');
|
|
||||||
if (evt.variable_tts_error) {
|
|
||||||
writeAlerts({
|
|
||||||
account_sid,
|
|
||||||
alert_type: AlertType.TTS_FAILURE,
|
|
||||||
vendor,
|
|
||||||
detail: evt.variable_tts_error
|
|
||||||
}).catch((err) => this.logger.info({err}, 'Error generating alert for no tts'));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.logger.debug({evt}, 'Say got playback-stop');
|
this.logger.debug({evt}, 'Say got playback-stop');
|
||||||
if (evt.variable_tts_error) {
|
if (evt.variable_tts_error) {
|
||||||
writeAlerts({
|
writeAlerts({
|
||||||
@@ -202,7 +192,7 @@ class TaskSay extends TtsTask {
|
|||||||
text
|
text
|
||||||
}).catch((err) => this.logger.info({err}, 'Error adding file to cache'));
|
}).catch((err) => this.logger.info({err}, 'Error adding file to cache'));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (this._playResolve) {
|
if (this._playResolve) {
|
||||||
evt.variable_tts_error ? this._playReject(new Error(evt.variable_tts_error)) : this._playResolve();
|
evt.variable_tts_error ? this._playReject(new Error(evt.variable_tts_error)) : this._playResolve();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user