Browse Source

fix(RN logging): sync with logging_config.js (#2382)

master
Paweł Domas 7 years ago
parent
commit
7ad875e735
2 changed files with 10 additions and 3 deletions
  1. 5
    2
      logging_config.js
  2. 5
    1
      react/features/base/logging/reducer.js

+ 5
- 2
logging_config.js View File

1
 /* eslint-disable no-unused-vars, no-var */
1
 /* eslint-disable no-unused-vars, no-var */
2
 // Logging configuration
2
 // 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 !!!
3
 var loggingConfig = {
5
 var loggingConfig = {
4
     // default log level for the app and lib-jitsi-meet
6
     // default log level for the app and lib-jitsi-meet
5
     defaultLogLevel: 'trace',
7
     defaultLogLevel: 'trace',
7
     // Option to disable LogCollector (which stores the logs on CallStats)
9
     // Option to disable LogCollector (which stores the logs on CallStats)
8
     // disableLogCollector: true,
10
     // disableLogCollector: true,
9
 
11
 
10
-    // Logging level adjustments for verbose modules:
11
-    'modules/xmpp/strophe.util.js': 'log',
12
+    // The following are too verbose in their logging with the
13
+    // {@link #defaultLogLevel}:
12
     'modules/statistics/CallStats.js': 'info',
14
     'modules/statistics/CallStats.js': 'info',
15
+    'modules/xmpp/strophe.util.js': 'log',
13
     'modules/RTC/TraceablePeerConnection.js': 'info'
16
     'modules/RTC/TraceablePeerConnection.js': 'info'
14
 };
17
 };
15
 
18
 

+ 5
- 1
react/features/base/logging/reducer.js View File

5
 /**
5
 /**
6
  * The initial state of the feature base/logging.
6
  * The initial state of the feature base/logging.
7
  *
7
  *
8
+ * XXX When making any changes to the INITIAL_STATE make sure to also update
9
+ * logging_config.js file located in the root directory of this project !!!
10
+ *
8
  * @type {{
11
  * @type {{
9
  *     config: Object
12
  *     config: Object
10
  * }}
13
  * }}
16
         // The following are too verbose in their logging with the
19
         // The following are too verbose in their logging with the
17
         // {@link #defaultLogLevel}:
20
         // {@link #defaultLogLevel}:
18
         'modules/statistics/CallStats.js': 'info',
21
         'modules/statistics/CallStats.js': 'info',
19
-        'modules/xmpp/strophe.util.js': 'log'
22
+        'modules/xmpp/strophe.util.js': 'log',
23
+        'modules/RTC/TraceablePeerConnection.js': 'info'
20
     }
24
     }
21
 };
25
 };
22
 
26
 

Loading…
Cancel
Save