|
|
@@ -241,10 +241,6 @@ CallStats.sendDominantSpeakerEvent = _try_catch(function (cs) {
|
|
241
|
241
|
* @private
|
|
242
|
242
|
*/
|
|
243
|
243
|
CallStats._reportEvent = function (event) {
|
|
244
|
|
- if(!event) {
|
|
245
|
|
- logger.warn("No event is passed!");
|
|
246
|
|
- return;
|
|
247
|
|
- }
|
|
248
|
244
|
if (callStats) {
|
|
249
|
245
|
callStats.sendFabricEvent(this.peerconnection, event, this.confID);
|
|
250
|
246
|
} else {
|
|
|
@@ -306,11 +302,9 @@ function(overallFeedback, detailedFeedback) {
|
|
306
|
302
|
* @private
|
|
307
|
303
|
*/
|
|
308
|
304
|
CallStats._reportError = function (type, e, pc) {
|
|
309
|
|
- if(!e) {//nothing to report
|
|
310
|
|
- logger.warn("No error is passed!");
|
|
311
|
|
- return;
|
|
|
305
|
+ if(!e) {
|
|
|
306
|
+ e = new Error("Unknown error");
|
|
312
|
307
|
}
|
|
313
|
|
-
|
|
314
|
308
|
if (callStats) {
|
|
315
|
309
|
callStats.reportError(pc, this.confID, type, e);
|
|
316
|
310
|
} else {
|