From: Matt Joiner Date: Tue, 30 Jul 2019 07:26:12 +0000 (+1000) Subject: Include remote address when logging failure to establish outbound connection X-Git-Tag: v1.5.2^0 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5f0b040f2541783223bfed13e565a3c0b84496eb;p=btrtrc.git Include remote address when logging failure to establish outbound connection --- diff --git a/client.go b/client.go index c6801cf1..847da20b 100644 --- a/client.go +++ b/client.go @@ -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 }