From 7bbd06c9f420b3d56765379b743b6de665487e56 Mon Sep 17 00:00:00 2001 From: Steffen Kolmer Date: Fri, 26 Feb 2021 22:26:09 +0100 Subject: [PATCH] Use logger instead of console --- react/features/remote-video-menu/actions.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/react/features/remote-video-menu/actions.js b/react/features/remote-video-menu/actions.js index 59bfadadf..5feb88948 100644 --- a/react/features/remote-video-menu/actions.js +++ b/react/features/remote-video-menu/actions.js @@ -1,4 +1,5 @@ // @flow +import { getLogger } from 'jitsi-meet-logger'; import type { Dispatch } from 'redux'; import UIEvents from '../../../service/UI/UIEvents'; @@ -25,6 +26,8 @@ import { RemoteVideoMenu } from './components'; declare var APP: Object; +const logger = getLogger(__filename); + /** * Hides the remote video menu. * @@ -46,7 +49,7 @@ export function muteLocal(enable: boolean, mediaType: MEDIA_TYPE) { const isAudio = mediaType === MEDIA_TYPE.AUDIO; if (!isAudio && mediaType !== MEDIA_TYPE.VIDEO) { - console.error(`Unsupported media type: ${mediaType}`); + logger.error(`Unsupported media type: ${mediaType}`); return; } @@ -71,7 +74,7 @@ export function muteLocal(enable: boolean, mediaType: MEDIA_TYPE) { export function muteRemote(participantId: string, mediaType: MEDIA_TYPE) { return (dispatch: Dispatch) => { if (mediaType !== MEDIA_TYPE.AUDIO && mediaType !== MEDIA_TYPE.VIDEO) { - console.error(`Unsupported media type: ${mediaType}`); + logger.error(`Unsupported media type: ${mediaType}`); return; }