Improve UDPMux Error Logging

Include error in warning output if candidate
gathering via UDPmux fails.
This commit is contained in:
Steffen Vogel
2022-05-08 22:53:42 -04:00
committed by Sean DuBois
parent e32a520e4c
commit 4669f66673
+1 -1
View File
@@ -144,7 +144,7 @@ func (a *Agent) gatherCandidatesLocal(ctx context.Context, networkTypes []Networ
// when UDPMux is enabled, skip other UDP candidates
if a.udpMux != nil {
if err := a.gatherCandidatesLocalUDPMux(ctx); err != nil {
a.log.Warnf("could not create host candidate for UDPMux")
a.log.Warnf("could not create host candidate for UDPMux: %s", err)
}
delete(networks, udp)
}