Merge pull request #14935 from prlanzarin/u26-brutalist-brat

fix(audio): incorrect change output device error log
This commit is contained in:
Paulo Lanzarin 2022-05-03 12:07:42 -03:00 committed by GitHub
commit e8feaf27b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,8 @@ export default class BaseAudioBridge {
logCode: 'audio_reload_audio_element',
extraInfo: {
bridgeName: this.bridgeName,
deviceId: value,
isLive,
},
}, 'Audio element reloaded after changing output device');
@ -94,8 +96,14 @@ export default class BaseAudioBridge {
} catch (error) {
logger.error({
logCode: 'audio_changeoutputdevice_error',
extraInfo: { error, callerIdName: this.user.callerIdName },
}, 'Change Output Device error');
extraInfo: {
bridgeName: this.bridgeName,
deviceId: value,
isLive,
errorName: error.name,
errorMessage: error.message,
},
}, `Change output device failed: ${error.name}`);
throw new Error(this.baseErrorCodes.MEDIA_ERROR);
}
}