From 91ace4d0ae1910d3616c70ef71fdfdb343ab034a Mon Sep 17 00:00:00 2001 From: ar-hosseinkhani Date: Wed, 28 Jun 2023 22:50:46 +0330 Subject: [PATCH] fix(gather): change log level --- gather.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gather.go b/gather.go index 15e2da14..18386ca3 100644 --- a/gather.go +++ b/gather.go @@ -13,12 +13,10 @@ import ( "sync" "time" - "github.com/pion/dtls/v2" "github.com/pion/ice/v2/internal/fakenet" stunx "github.com/pion/ice/v2/internal/stun" "github.com/pion/logging" "github.com/pion/stun" - "github.com/pion/turn/v2" ) const ( @@ -400,7 +398,7 @@ func (a *Agent) gatherCandidatesSrflxUDPMux(ctx context.Context, urls []*stun.UR hostPort := fmt.Sprintf("%s:%d", url.Host, url.Port) serverAddr, err := a.net.ResolveUDPAddr(network, hostPort) if err != nil { - a.log.Warnf("Failed to resolve STUN host: %s: %v", hostPort, err) + a.log.Debugf("Failed to resolve STUN host: %s: %v", hostPort, err) return } @@ -462,7 +460,7 @@ func (a *Agent) gatherCandidatesSrflx(ctx context.Context, urls []*stun.URI, net hostPort := fmt.Sprintf("%s:%d", url.Host, url.Port) serverAddr, err := a.net.ResolveUDPAddr(network, hostPort) if err != nil { - a.log.Warnf("Failed to resolve STUN host: %s: %v", hostPort, err) + a.log.Debugf("Failed to resolve STUN host: %s: %v", hostPort, err) return }