From e96e8de7251ecb887298b60e7f120ad2de228beb Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Wed, 17 Apr 2024 11:14:40 +0530 Subject: [PATCH] Debug logging addition of ICE candidate (#2659) --- pkg/rtc/transport.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/rtc/transport.go b/pkg/rtc/transport.go index b4cc64b0b..6a975ac28 100644 --- a/pkg/rtc/transport.go +++ b/pkg/rtc/transport.go @@ -1392,6 +1392,8 @@ func (t *PCTransport) handleRemoteICECandidate(e event) error { if err := t.pc.AddICECandidate(*c); err != nil { t.params.Logger.Warnw("failed to add cached ICE candidate", err, "candidate", c) return errors.Wrap(err, "add ice candidate failed") + } else { + t.params.Logger.Debugw("added cached ICE candidate", "candidate", c) } return nil @@ -1628,6 +1630,8 @@ func (t *PCTransport) setRemoteDescription(sd webrtc.SessionDescription) error { if err := t.pc.AddICECandidate(*c); err != nil { t.params.Logger.Warnw("failed to add cached ICE candidate", err, "candidate", c) return errors.Wrap(err, "add ice candidate failed") + } else { + t.params.Logger.Debugw("added cached ICE candidate", "candidate", c) } } t.pendingRemoteCandidates = nil