Explorar o código

Improve ICE candidate error event logging

Lennart Grahl %!s(int64=6) %!d(string=hai) anos
pai
achega
222e067075
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/services/peerconnection.ts

+ 2 - 1
src/services/peerconnection.ts

@@ -107,7 +107,8 @@ export class PeerConnectionHelper {
             }
         };
         this.pc.onicecandidateerror = (e: RTCPeerConnectionIceErrorEvent) => {
-            this.log.error('ICE candidate error:', e);
+            this.log.warn(`ICE candidate error: ${e.errorText} ` +
+                `(url=${e.url}, host-candidate=${e.hostCandidate}, code=${e.errorCode})`);
         };
         this.pc.oniceconnectionstatechange = () => {
             this.log.debug('ICE connection state change:', this.pc.iceConnectionState);