]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Include remote address when logging failure to establish outbound connection v1.5.2
authorMatt Joiner <anacrolix@gmail.com>
Tue, 30 Jul 2019 07:26:12 +0000 (17:26 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 30 Jul 2019 07:26:12 +0000 (17:26 +1000)
client.go

index c6801cf10740037ef5ac7c0cbfd61cff2371a4ae..847da20b6a508c91cf58f2fc7b8a216088cbc7f2 100644 (file)
--- 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
        }