Pārlūkot izejas kodu

Updates cs log for audio detect problem.

master
damencho 9 gadus atpakaļ
vecāks
revīzija
9bb44a2562
2 mainītis faili ar 6 papildinājumiem un 3 dzēšanām
  1. 5
    2
      JitsiConference.js
  2. 1
    1
      modules/statistics/CallStats.js

+ 5
- 2
JitsiConference.js Parādīt failu

@@ -1203,12 +1203,15 @@ JitsiConference.prototype._reportAudioProblem = function (ssrc) {
1203 1203
         });
1204 1204
     }
1205 1205
 
1206
-    this.statistics.sendDetectedAudioProblem(
1207
-        new Error(JSON.stringify(errorContent)));
1208 1206
     // Prints JSON.stringify(errorContent) to be able to see all properties of
1209 1207
     // errorContent from torture
1210 1208
     logger.error("Audio problem detected. The audio is received but not played",
1211 1209
         errorContent);
1210
+
1211
+    delete errorContent.displayName;
1212
+
1213
+    this.statistics.sendDetectedAudioProblem(
1214
+        new Error(JSON.stringify(errorContent)));
1212 1215
 };
1213 1216
 
1214 1217
 /**

+ 1
- 1
modules/statistics/CallStats.js Parādīt failu

@@ -337,7 +337,7 @@ CallStats.prototype.sendTerminateEvent = _try_catch(function () {
337 337
  * @param {CallStats} cs callstats instance related to the error (optional)
338 338
  */
339 339
 CallStats.prototype.sendDetectedAudioProblem = _try_catch(function (e) {
340
-    CallStats._reportError.call(this, wrtcFuncNames.signalingError, e,
340
+    CallStats._reportError.call(this, wrtcFuncNames.applicationLog, e,
341 341
         this.peerconnection);
342 342
 });
343 343
 

Notiek ielāde…
Atcelt
Saglabāt