Browse 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.
master
Saúl Ibarra Corretgé 6 years ago
parent
commit
5276cb6bc8

+ 1
- 3
react/features/always-on-top/AudioMuteButton.js View File

5
 import AbstractAudioMuteButton from '../base/toolbox/components/AbstractAudioMuteButton';
5
 import AbstractAudioMuteButton from '../base/toolbox/components/AbstractAudioMuteButton';
6
 import type { Props } from '../base/toolbox/components/AbstractButton';
6
 import type { Props } from '../base/toolbox/components/AbstractButton';
7
 
7
 
8
-import logger from './logger';
9
-
10
 const { api } = window.alwaysOnTop;
8
 const { api } = window.alwaysOnTop;
11
 
9
 
12
 /**
10
 /**
72
                     audioAvailable,
70
                     audioAvailable,
73
                     audioMuted
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 View File

5
 import AbstractVideoMuteButton from '../base/toolbox/components/AbstractVideoMuteButton';
5
 import AbstractVideoMuteButton from '../base/toolbox/components/AbstractVideoMuteButton';
6
 import type { Props } from '../base/toolbox/components/AbstractButton';
6
 import type { Props } from '../base/toolbox/components/AbstractButton';
7
 
7
 
8
-import logger from './logger';
9
-
10
 const { api } = window.alwaysOnTop;
8
 const { api } = window.alwaysOnTop;
11
 
9
 
12
 /**
10
 /**
72
                     videoAvailable,
70
                     videoAvailable,
73
                     videoMuted
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 View File

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

Loading…
Cancel
Save