소스 검색

Sends the stack when reporting errors.

dev1
damencho 9 년 전
부모
커밋
fb5a36a48f
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4
    1
      modules/statistics/CallStats.js

+ 4
- 1
modules/statistics/CallStats.js 파일 보기

@@ -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;

Loading…
취소
저장