Parcourir la source

alwaysontop: don't use the Grand Unified Logger

There are just a couple of logs in this feature, and it's a standalone bundle,
which would bloat it due to cascaded dependencis.
j8
Saúl Ibarra Corretgé il y a 5 ans
Parent
révision
5276cb6bc8

+ 1
- 3
react/features/always-on-top/AudioMuteButton.js Voir le fichier

@@ -5,8 +5,6 @@
5 5
 import AbstractAudioMuteButton from '../base/toolbox/components/AbstractAudioMuteButton';
6 6
 import type { Props } from '../base/toolbox/components/AbstractButton';
7 7
 
8
-import logger from './logger';
9
-
10 8
 const { api } = window.alwaysOnTop;
11 9
 
12 10
 /**
@@ -72,7 +70,7 @@ export default class AudioMuteButton
72 70
                     audioAvailable,
73 71
                     audioMuted
74 72
                 }))
75
-            .catch(logger.error);
73
+            .catch(console.error);
76 74
     }
77 75
 
78 76
     /**

+ 1
- 3
react/features/always-on-top/VideoMuteButton.js Voir le fichier

@@ -5,8 +5,6 @@
5 5
 import AbstractVideoMuteButton from '../base/toolbox/components/AbstractVideoMuteButton';
6 6
 import type { Props } from '../base/toolbox/components/AbstractButton';
7 7
 
8
-import logger from './logger';
9
-
10 8
 const { api } = window.alwaysOnTop;
11 9
 
12 10
 /**
@@ -72,7 +70,7 @@ export default class VideoMuteButton
72 70
                     videoAvailable,
73 71
                     videoMuted
74 72
                 }))
75
-            .catch(logger.error);
73
+            .catch(console.error);
76 74
     }
77 75
 
78 76
     /**

+ 0
- 3
react/features/always-on-top/logger.js Voir le fichier

@@ -1,3 +0,0 @@
1
-import { getLogger } from '../base/logging/functions';
2
-
3
-export default getLogger('features/always-on-top');

Chargement…
Annuler
Enregistrer