Skip to content

Commit

Permalink
fix(gather): change log level
Browse files Browse the repository at this point in the history
  • Loading branch information
ar-hosseinkhani committed Jun 28, 2023
1 parent cb8d677 commit 91ace4d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gather.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 91ace4d

Please sign in to comment.