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 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b5529b440e2ce64234462649ff9d27eb617b05f7;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 }