From 5f0b040f2541783223bfed13e565a3c0b84496eb Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 30 Jul 2019 17:26:12 +1000 Subject: [PATCH] Include remote address when logging failure to establish outbound connection --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.48.1