|
@@ -1,7 +1,6 @@
|
1
|
1
|
/* eslint-disable no-unused-vars, no-var */
|
|
2
|
+
|
2
|
3
|
// Logging configuration
|
3
|
|
-// XXX When making any changes to this file make sure to also update it's React
|
4
|
|
-// version at ./react/features/base/logging/reducer.js !!!
|
5
|
4
|
var loggingConfig = {
|
6
|
5
|
// default log level for the app and lib-jitsi-meet
|
7
|
6
|
defaultLogLevel: 'trace',
|
|
@@ -11,9 +10,17 @@ var loggingConfig = {
|
11
|
10
|
|
12
|
11
|
// The following are too verbose in their logging with the
|
13
|
12
|
// {@link #defaultLogLevel}:
|
|
13
|
+ 'modules/RTC/TraceablePeerConnection.js': 'info',
|
14
|
14
|
'modules/statistics/CallStats.js': 'info',
|
15
|
|
- 'modules/xmpp/strophe.util.js': 'log',
|
16
|
|
- 'modules/RTC/TraceablePeerConnection.js': 'info'
|
|
15
|
+ 'modules/xmpp/strophe.util.js': 'log'
|
17
|
16
|
};
|
18
|
17
|
|
19
|
18
|
/* eslint-enable no-unused-vars, no-var */
|
|
19
|
+
|
|
20
|
+// XXX Web/React server-includes logging_config.js into index.html.
|
|
21
|
+// Mobile/react-native requires it in react/features/base/logging. For the
|
|
22
|
+// purposes of the latter, (try to) export loggingConfig. The following
|
|
23
|
+// detection of a module system is inspired by webpack.
|
|
24
|
+typeof module === 'object'
|
|
25
|
+ && typeof exports === 'object'
|
|
26
|
+ && (module.exports = loggingConfig);
|