Logging negotiation as we are seeing some errors with filtering candi… (#900)

This commit is contained in:
Raja Subramanian
2022-08-09 16:57:15 +05:30
committed by GitHub
parent 82439538e7
commit 4ec7e71b2d
3 changed files with 12 additions and 7 deletions
+3 -1
View File
@@ -321,7 +321,7 @@ func (t *PCTransport) AddICECandidate(candidate webrtc.ICECandidateInit) error {
return nil
}
t.params.Logger.Debugw("add candidate ", "candidate", candidate.Candidate)
t.params.Logger.Infow("add candidate ", "candidate", candidate.Candidate)
return t.pc.AddICECandidate(candidate)
}
@@ -563,7 +563,9 @@ func (t *PCTransport) createAndSendOffer(options *webrtc.OfferOptions) error {
return err
}
t.params.Logger.Infow("local offer (unfiltered)", "sdp", offer.SDP)
offer = t.filterCandidates(offer)
t.params.Logger.Infow("local offer (filtered)", "sdp", offer.SDP)
err = t.pc.SetLocalDescription(offer)
if err != nil {