mirror of
https://github.com/livekit/livekit.git
synced 2026-04-27 15:05:24 +00:00
Log fix. (#2637)
Else, it was logging something like
`candidateError: json: unsupported type: func() interface {}`
This commit is contained in:
@@ -1336,10 +1336,7 @@ func (t *PCTransport) handleLocalICECandidate(e *event) error {
|
||||
filtered := false
|
||||
if c != nil {
|
||||
if t.preferTCP.Load() && c.Protocol != webrtc.ICEProtocolTCP {
|
||||
t.params.Logger.Debugw("filtering out local candidate",
|
||||
"candidate", func() interface{} {
|
||||
return c.String()
|
||||
})
|
||||
t.params.Logger.Debugw("filtering out local candidate", "candidate", c.String())
|
||||
filtered = true
|
||||
}
|
||||
t.connectionDetails.AddLocalCandidate(c, filtered)
|
||||
|
||||
Reference in New Issue
Block a user