Set debug log level for outgoing connection error
Contributed by @tsynik in https://github.com/anacrolix/torrent/issues/702#issuecomment-1010523079.
This commit is contained in:
parent
39bd8fc5a0
commit
9434fe58a2
@ -772,7 +772,7 @@ func (cl *Client) outgoingConnection(t *Torrent, addr PeerRemoteAddr, ps PeerSou
|
||||
cl.noLongerHalfOpen(t, addr.String())
|
||||
if err != nil {
|
||||
if cl.config.Debug {
|
||||
cl.logger.Printf("error establishing outgoing connection to %v: %v", addr, err)
|
||||
cl.logger.Levelf(log.Debug, "error establishing outgoing connection to %v: %v", addr, err)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user