2
0
mirror of synced 2025-02-23 14:18:13 +00:00

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:
Matt Joiner 2022-05-12 13:33:57 +10:00
parent 39bd8fc5a0
commit 9434fe58a2
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782

View File

@ -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
}