Browse Source

Use logger instead of console

j8
Steffen Kolmer 4 years ago
parent
commit
7bbd06c9f4
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      react/features/remote-video-menu/actions.js

+ 5
- 2
react/features/remote-video-menu/actions.js View File

@@ -1,4 +1,5 @@
1 1
 // @flow
2
+import { getLogger } from 'jitsi-meet-logger';
2 3
 import type { Dispatch } from 'redux';
3 4
 
4 5
 import UIEvents from '../../../service/UI/UIEvents';
@@ -25,6 +26,8 @@ import { RemoteVideoMenu } from './components';
25 26
 
26 27
 declare var APP: Object;
27 28
 
29
+const logger = getLogger(__filename);
30
+
28 31
 /**
29 32
  * Hides the remote video menu.
30 33
  *
@@ -46,7 +49,7 @@ export function muteLocal(enable: boolean, mediaType: MEDIA_TYPE) {
46 49
         const isAudio = mediaType === MEDIA_TYPE.AUDIO;
47 50
 
48 51
         if (!isAudio && mediaType !== MEDIA_TYPE.VIDEO) {
49
-            console.error(`Unsupported media type: ${mediaType}`);
52
+            logger.error(`Unsupported media type: ${mediaType}`);
50 53
 
51 54
             return;
52 55
         }
@@ -71,7 +74,7 @@ export function muteLocal(enable: boolean, mediaType: MEDIA_TYPE) {
71 74
 export function muteRemote(participantId: string, mediaType: MEDIA_TYPE) {
72 75
     return (dispatch: Dispatch<any>) => {
73 76
         if (mediaType !== MEDIA_TYPE.AUDIO && mediaType !== MEDIA_TYPE.VIDEO) {
74
-            console.error(`Unsupported media type: ${mediaType}`);
77
+            logger.error(`Unsupported media type: ${mediaType}`);
75 78
 
76 79
             return;
77 80
         }

Loading…
Cancel
Save