Przeglądaj źródła

Adds option to disable callstats app logs.

dev1
damencho 5 lat temu
rodzic
commit
6713d1f67c
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6
    0
      modules/statistics/statistics.js

+ 6
- 0
modules/statistics/statistics.js Wyświetl plik

162
             // requests to any third parties.
162
             // requests to any third parties.
163
             && (Statistics.disableThirdPartyRequests !== true);
163
             && (Statistics.disableThirdPartyRequests !== true);
164
     if (this.callStatsIntegrationEnabled) {
164
     if (this.callStatsIntegrationEnabled) {
165
+        this.callStatsApplicationLogsDisabled
166
+            = this.options.callStatsApplicationLogsDisabled;
165
         if (browser.isReactNative()) {
167
         if (browser.isReactNative()) {
166
             _initCallStatsBackend(this.options);
168
             _initCallStatsBackend(this.options);
167
         } else {
169
         } else {
668
     // unique conference ID rather than selecting the first one.
670
     // unique conference ID rather than selecting the first one.
669
     // We don't have such use case though, so leaving as is for now.
671
     // We don't have such use case though, so leaving as is for now.
670
     for (const stats of Statistics.instances) {
672
     for (const stats of Statistics.instances) {
673
+        if (stats.callStatsApplicationLogsDisabled) {
674
+            return;
675
+        }
676
+
671
         if (stats.callsStatsInstances.size) {
677
         if (stats.callsStatsInstances.size) {
672
             globalSubSet.add(stats.callsStatsInstances.values().next().value);
678
             globalSubSet.add(stats.callsStatsInstances.values().next().value);
673
         }
679
         }

Ładowanie…
Anuluj
Zapisz