openvidu-browser: Log MediaStream ID instead of whole object

Log the MediaStream ID, which is a string, instead of the mediaStream
object, which showed up as "[object MediaStream]" in the logs.
pull/704/head
Juan Navarro 2022-02-23 11:10:56 +01:00
parent 6d018de09d
commit 1173f04abc
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ export class Stream {
this.ee.on('mediastream-updated', () => {
this.streamManager.updateMediaStream(this.mediaStream!);
logger.debug('Video srcObject [' + this.mediaStream + '] updated in stream [' + this.streamId + ']');
logger.debug('Video srcObject [' + this.mediaStream?.id + '] updated in stream [' + this.streamId + ']');
});
}