From 4669f6667393590d3e67fcc27379679d9f8f42d3 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 4 May 2022 21:28:10 +0200 Subject: [PATCH] Improve UDPMux Error Logging Include error in warning output if candidate gathering via UDPmux fails. --- gather.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gather.go b/gather.go index 0eab32f..15536ce 100644 --- a/gather.go +++ b/gather.go @@ -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) }