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

pull/2363/head jitsi-meet_2749
Paweł Domas 7 years ago committed by bbaldino
parent 41aa704e1f
commit 7ad875e735
  1. 7
      logging_config.js
  2. 6
      react/features/base/logging/reducer.js

@ -1,5 +1,7 @@
/* eslint-disable no-unused-vars, no-var */
// Logging configuration
// XXX When making any changes to this file make sure to also update it's React
// version at ./react/features/base/logging/reducer.js !!!
var loggingConfig = {
// default log level for the app and lib-jitsi-meet
defaultLogLevel: 'trace',
@ -7,9 +9,10 @@ var loggingConfig = {
// Option to disable LogCollector (which stores the logs on CallStats)
// disableLogCollector: true,
// Logging level adjustments for verbose modules:
'modules/xmpp/strophe.util.js': 'log',
// The following are too verbose in their logging with the
// {@link #defaultLogLevel}:
'modules/statistics/CallStats.js': 'info',
'modules/xmpp/strophe.util.js': 'log',
'modules/RTC/TraceablePeerConnection.js': 'info'
};

@ -5,6 +5,9 @@ import { SET_LOGGING_CONFIG } from './actionTypes';
/**
* The initial state of the feature base/logging.
*
* XXX When making any changes to the INITIAL_STATE make sure to also update
* logging_config.js file located in the root directory of this project !!!
*
* @type {{
* config: Object
* }}
@ -16,7 +19,8 @@ const INITIAL_STATE = {
// The following are too verbose in their logging with the
// {@link #defaultLogLevel}:
'modules/statistics/CallStats.js': 'info',
'modules/xmpp/strophe.util.js': 'log'
'modules/xmpp/strophe.util.js': 'log',
'modules/RTC/TraceablePeerConnection.js': 'info'
}
};

Loading…
Cancel
Save