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,5 +1,7 @@
1 1
 /* eslint-disable no-unused-vars, no-var */
2 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 5
 var loggingConfig = {
4 6
     // default log level for the app and lib-jitsi-meet
5 7
     defaultLogLevel: 'trace',
@@ -7,9 +9,10 @@ var loggingConfig = {
7 9
     // Option to disable LogCollector (which stores the logs on CallStats)
8 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 14
     'modules/statistics/CallStats.js': 'info',
15
+    'modules/xmpp/strophe.util.js': 'log',
13 16
     'modules/RTC/TraceablePeerConnection.js': 'info'
14 17
 };
15 18
 

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

@@ -5,6 +5,9 @@ import { SET_LOGGING_CONFIG } from './actionTypes';
5 5
 /**
6 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 11
  * @type {{
9 12
  *     config: Object
10 13
  * }}
@@ -16,7 +19,8 @@ const INITIAL_STATE = {
16 19
         // The following are too verbose in their logging with the
17 20
         // {@link #defaultLogLevel}:
18 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