From: Matt Joiner <anacrolix@gmail.com>
Date: Fri, 19 Jul 2019 06:17:38 +0000 (+1000)
Subject: Add some commented out logging
X-Git-Tag: v1.5.0~6
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3c0588d6614f8a7067ca6a984064dedc1ed4d146;p=btrtrc.git

Add some commented out logging
---

diff --git a/client.go b/client.go
index ecedccfe..5b7831cc 100644
--- a/client.go
+++ b/client.go
@@ -520,6 +520,7 @@ func (cl *Client) dialFirst(ctx context.Context, addr string) dialResult {
 					return
 				}
 				left++
+				//cl.logger.Printf("dialing %s on %s/%s", addr, s.Addr().Network(), s.Addr())
 				go func() {
 					resCh <- dialResult{
 						cl.dialFromSocket(ctx, s, addr),
@@ -550,6 +551,11 @@ func (cl *Client) dialFirst(ctx context.Context, addr string) dialResult {
 	if res.Conn != nil {
 		go torrent.Add(fmt.Sprintf("network dialed first: %s", res.Conn.RemoteAddr().Network()), 1)
 	}
+	//if res.Conn != nil {
+	//	cl.logger.Printf("first connection for %s from %s/%s", addr, res.Conn.LocalAddr().Network(), res.Conn.LocalAddr().String())
+	//} else {
+	//	cl.logger.Printf("failed to dial %s", addr)
+	//}
 	return res
 }