mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-06 08:46:57 +08:00
Update webrtc trace logs for local candidates
This commit is contained in:
@@ -88,7 +88,7 @@ func go2rtcClient(url string) (core.Producer, error) {
|
||||
switch msg := msg.(type) {
|
||||
case *pion.ICECandidate:
|
||||
s := msg.ToJSON().Candidate
|
||||
log.Trace().Str("candidate", s).Msg("[webrtc] local")
|
||||
log.Trace().Str("candidate", s).Msg("[webrtc] local ")
|
||||
_ = conn.WriteJSON(&ws.Message{Type: "webrtc/candidate", Value: s})
|
||||
|
||||
case pion.PeerConnectionState:
|
||||
|
@@ -138,7 +138,7 @@ func asyncHandler(tr *ws.Transport, msg *ws.Message) error {
|
||||
_ = sendAnswer.Wait()
|
||||
|
||||
s := msg.ToJSON().Candidate
|
||||
log.Trace().Str("candidate", s).Msg("[webrtc] local")
|
||||
log.Trace().Str("candidate", s).Msg("[webrtc] local ")
|
||||
tr.Write(&ws.Message{Type: "webrtc/candidate", Value: s})
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user