2
0
mirror of synced 2025-02-23 22:28:11 +00:00

Include remote address when logging failure to establish outbound connection

This commit is contained in:
Matt Joiner 2019-07-30 17:26:12 +10:00
parent 7b47dcbf51
commit 5f0b040f25

View File

@ -690,7 +690,7 @@ func (cl *Client) outgoingConnection(t *Torrent, addr IpPort, ps peerSource) {
cl.noLongerHalfOpen(t, addr.String())
if err != nil {
if cl.config.Debug {
cl.logger.Printf("error establishing outgoing connection: %s", err)
cl.logger.Printf("error establishing outgoing connection to %v: %v", addr, err)
}
return
}