Skip to content

Commit

Permalink
Change log level for failed DNS resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
ar-hosseinkhani authored and stv0g committed Jul 6, 2023
1 parent cb8d677 commit 7ab8231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gather.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,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 +462,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 7ab8231

Please sign in to comment.