Parcourir la source

Sends the stack when reporting errors.

master
damencho il y a 9 ans
Parent
révision
fb5a36a48f
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4
    1
      modules/statistics/CallStats.js

+ 4
- 1
modules/statistics/CallStats.js Voir le fichier

@@ -387,7 +387,10 @@ CallStats.sendAddIceCandidateFailed = _try_catch(function (e, pc, cs) {
387 387
  * @param {CallStats} cs callstats instance related to the error (optional)
388 388
  */
389 389
 CallStats.sendUnhandledError = _try_catch(function (e, cs) {
390
-    CallStats._reportError.call(cs, wrtcFuncNames.signalingError, e, null);
390
+    // for now send the stack property of errors, which is has the form:
391
+    // name: message <newline> stack(multiline)
392
+    CallStats._reportError
393
+        .call(cs, wrtcFuncNames.signalingError, e.stack, null);
391 394
 });
392 395
 
393 396
 module.exports = CallStats;

Chargement…
Annuler
Enregistrer