Browse Source

Adds option to disable callstats app logs.

dev1
damencho 5 years ago
parent
commit
6713d1f67c
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      modules/statistics/statistics.js

+ 6
- 0
modules/statistics/statistics.js View File

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

Loading…
Cancel
Save