浏览代码

Updates cs log for audio detect problem.

master
damencho 9 年前
父节点
当前提交
9bb44a2562
共有 2 个文件被更改,包括 6 次插入3 次删除
  1. 5
    2
      JitsiConference.js
  2. 1
    1
      modules/statistics/CallStats.js

+ 5
- 2
JitsiConference.js 查看文件

1203
         });
1203
         });
1204
     }
1204
     }
1205
 
1205
 
1206
-    this.statistics.sendDetectedAudioProblem(
1207
-        new Error(JSON.stringify(errorContent)));
1208
     // Prints JSON.stringify(errorContent) to be able to see all properties of
1206
     // Prints JSON.stringify(errorContent) to be able to see all properties of
1209
     // errorContent from torture
1207
     // errorContent from torture
1210
     logger.error("Audio problem detected. The audio is received but not played",
1208
     logger.error("Audio problem detected. The audio is received but not played",
1211
         errorContent);
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 查看文件

337
  * @param {CallStats} cs callstats instance related to the error (optional)
337
  * @param {CallStats} cs callstats instance related to the error (optional)
338
  */
338
  */
339
 CallStats.prototype.sendDetectedAudioProblem = _try_catch(function (e) {
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
         this.peerconnection);
341
         this.peerconnection);
342
 });
342
 });
343
 
343
 

正在加载...
取消
保存