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', logCode: 'audio_reload_audio_element',
extraInfo: { extraInfo: {
bridgeName: this.bridgeName, bridgeName: this.bridgeName,
deviceId: value,
isLive,
}, },
}, 'Audio element reloaded after changing output device'); }, 'Audio element reloaded after changing output device');
@ -94,8 +96,14 @@ export default class BaseAudioBridge {
} catch (error) { } catch (error) {
logger.error({ logger.error({
logCode: 'audio_changeoutputdevice_error', logCode: 'audio_changeoutputdevice_error',
extraInfo: { error, callerIdName: this.user.callerIdName }, extraInfo: {
}, 'Change Output Device error'); 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); throw new Error(this.baseErrorCodes.MEDIA_ERROR);
} }
} }