Merge pull request #14935 from prlanzarin/u26-brutalist-brat
fix(audio): incorrect change output device error log
This commit is contained in:
commit
e8feaf27b6
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user