feat(logging_config): add "disableLogCollector" option
This commit is contained in:
parent
36bcc6831b
commit
94bd6bc330
4
app.js
4
app.js
@ -162,7 +162,7 @@ const APP = {
|
|||||||
// Adjust logging level
|
// Adjust logging level
|
||||||
configureLoggingLevels();
|
configureLoggingLevels();
|
||||||
// Start the LogCollector and register it as the global log transport
|
// Start the LogCollector and register it as the global log transport
|
||||||
if (!this.logCollector) {
|
if (!this.logCollector && !loggingConfig.disableLogCollector) {
|
||||||
this.logCollector = new LogCollector({
|
this.logCollector = new LogCollector({
|
||||||
storeLogs: (logJSON) => {
|
storeLogs: (logJSON) => {
|
||||||
// Try catch was used, because there are many variables
|
// Try catch was used, because there are many variables
|
||||||
@ -211,8 +211,10 @@ function init() {
|
|||||||
if (isUIReady) {
|
if (isUIReady) {
|
||||||
// Start the LogCollector's periodic "store logs" task only if we're in
|
// Start the LogCollector's periodic "store logs" task only if we're in
|
||||||
// the conference and not on the welcome page.
|
// the conference and not on the welcome page.
|
||||||
|
if (APP.logCollector) {
|
||||||
APP.logCollector.start();
|
APP.logCollector.start();
|
||||||
APP.logCollectorStarted = true;
|
APP.logCollectorStarted = true;
|
||||||
|
}
|
||||||
|
|
||||||
APP.conference.init({roomName: buildRoomName()}).then(function () {
|
APP.conference.init({roomName: buildRoomName()}).then(function () {
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
var loggingConfig = { // eslint-disable-line no-unused-vars
|
var loggingConfig = { // eslint-disable-line no-unused-vars
|
||||||
//default log level for the app and lib-jitsi-meet
|
//default log level for the app and lib-jitsi-meet
|
||||||
//defaultLogLevel: 'trace',
|
//defaultLogLevel: 'trace',
|
||||||
|
// Option to disable LogCollector (which stores the logs on CallStats)
|
||||||
|
//disableLogCollector: true,
|
||||||
// Examples:
|
// Examples:
|
||||||
//'modules/version/ComponentsVersions.js': 'info',
|
//'modules/version/ComponentsVersions.js': 'info',
|
||||||
//'modules/xmpp/ChatRoom.js': 'log'
|
//'modules/xmpp/ChatRoom.js': 'log'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user