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
|
filtered := false
|
||||||
if c != nil {
|
if c != nil {
|
||||||
if t.preferTCP.Load() && c.Protocol != webrtc.ICEProtocolTCP {
|
if t.preferTCP.Load() && c.Protocol != webrtc.ICEProtocolTCP {
|
||||||
t.params.Logger.Debugw("filtering out local candidate",
|
t.params.Logger.Debugw("filtering out local candidate", "candidate", c.String())
|
||||||
"candidate", func() interface{} {
|
|
||||||
return c.String()
|
|
||||||
})
|
|
||||||
filtered = true
|
filtered = true
|
||||||
}
|
}
|
||||||
t.connectionDetails.AddLocalCandidate(c, filtered)
|
t.connectionDetails.AddLocalCandidate(c, filtered)
|
||||||
|
|||||||
Reference in New Issue
Block a user