소스 검색

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.
master
Saúl Ibarra Corretgé 6 년 전
부모
커밋
5276cb6bc8
3개의 변경된 파일2개의 추가작업 그리고 9개의 파일을 삭제
  1. 1
    3
      react/features/always-on-top/AudioMuteButton.js
  2. 1
    3
      react/features/always-on-top/VideoMuteButton.js
  3. 0
    3
      react/features/always-on-top/logger.js

+ 1
- 3
react/features/always-on-top/AudioMuteButton.js 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

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

Loading…
취소
저장