|
|
@@ -364,40 +364,20 @@ Statistics.prototype.sendAddIceCandidateFailed = function (e, pc) {
|
|
364
|
364
|
};
|
|
365
|
365
|
|
|
366
|
366
|
/**
|
|
367
|
|
- * Notifies CallStats that there is unhandled exception.
|
|
|
367
|
+ * Adds to CallStats an application log.
|
|
368
|
368
|
*
|
|
369
|
|
- * @param {Error} e error to send
|
|
|
369
|
+ * @param {String} a log message to send or an {Error} object to be reported
|
|
370
|
370
|
*/
|
|
371
|
|
-Statistics.sendUnhandledError = function (e) {
|
|
|
371
|
+Statistics.sendLog = function (m) {
|
|
372
|
372
|
if (Statistics.callsStatsInstances.length) {
|
|
373
|
373
|
Statistics.callsStatsInstances.forEach(function (cs) {
|
|
374
|
|
- CallStats.sendUnhandledError(e, cs);
|
|
|
374
|
+ CallStats.sendApplicationLog(m, cs);
|
|
375
|
375
|
});
|
|
376
|
376
|
} else {
|
|
377
|
|
- CallStats.sendUnhandledError(e, null);
|
|
|
377
|
+ CallStats.sendApplicationLog(m, null);
|
|
378
|
378
|
}
|
|
379
|
379
|
};
|
|
380
|
380
|
|
|
381
|
|
-/**
|
|
382
|
|
- * Adds to CallStats an application log.
|
|
383
|
|
- *
|
|
384
|
|
- * @param {String} a log message to send
|
|
385
|
|
- */
|
|
386
|
|
-Statistics.sendLog = function (m) {
|
|
387
|
|
- // uses the same field for cs stat as unhandled error
|
|
388
|
|
- Statistics.sendUnhandledError(m);
|
|
389
|
|
-};
|
|
390
|
|
-
|
|
391
|
|
-/**
|
|
392
|
|
- * Adds to CallStats an application log.
|
|
393
|
|
- *
|
|
394
|
|
- * @param {String} a log message to send
|
|
395
|
|
- */
|
|
396
|
|
-Statistics.prototype.sendLog = function (m) {
|
|
397
|
|
- // uses the same field for cs stat as unhandled error
|
|
398
|
|
- CallStats.sendUnhandledError(m, this.callstats);
|
|
399
|
|
-};
|
|
400
|
|
-
|
|
401
|
381
|
/**
|
|
402
|
382
|
* Sends the given feedback through CallStats.
|
|
403
|
383
|
*
|
|
|
@@ -420,7 +400,7 @@ Statistics.reportGlobalError = function (error) {
|
|
420
|
400
|
if (error instanceof JitsiTrackError && error.gum) {
|
|
421
|
401
|
Statistics.sendGetUserMediaFailed(error);
|
|
422
|
402
|
} else {
|
|
423
|
|
- Statistics.sendUnhandledError(error);
|
|
|
403
|
+ Statistics.sendLog(error);
|
|
424
|
404
|
}
|
|
425
|
405
|
};
|
|
426
|
406
|
|