From b692cd109e36425f56ba1821894aa1bef623ff86 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 12 Jan 2021 17:58:35 +0000 Subject: [PATCH] Don't log if no WebRTC as hopefully explained in comment --- src/webrtc/call.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index fc20301e4..c69ab2e4c 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -1663,7 +1663,8 @@ export function setVideoInput(deviceId: string) { videoInput = deviceId; } export function createNewMatrixCall(client: any, roomId: string, options?: CallOpts) { // typeof prevents Node from erroring on an undefined reference if (typeof(window) === 'undefined' || typeof(document) === 'undefined') { - logger.info("No window or document object: WebRTC is not supported in this environment"); + // NB. We don't log here as apps try to create a call object as a test for + // whether calls are supported, so we shouldn't fill the logs up. return null; }