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

This commit is contained in:
Paweł Domas 2018-01-17 12:59:48 -06:00 committed by bbaldino
parent 41aa704e1f
commit 7ad875e735
2 changed files with 10 additions and 3 deletions

View File

@ -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'
};

View File

@ -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'
}
};