From 02e058370e5bb388573fcc0aabfb605c59dc4dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 23 Aug 2019 15:09:04 +0200 Subject: [PATCH] logging: disable caller info globally --- react/features/base/logging/middleware.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/react/features/base/logging/middleware.js b/react/features/base/logging/middleware.js index 6aad5e7fb..6fbf4e2fc 100644 --- a/react/features/base/logging/middleware.js +++ b/react/features/base/logging/middleware.js @@ -163,6 +163,12 @@ function _initLogging({ dispatch, getState }, loggingConfig, isTestingEnabled) { logCollector.stop(); dispatch(setLogCollector(undefined)); } + + // Disable caller function info. + if (navigator.product === 'ReactNative') { + Logger.setGlobalOptions({ disableCallerInfo: true }); + JitsiMeetJS.setGlobalLogOptions({ disableCallerInfo: true }); + } } /**