From cb003081576beb50ca61576aa67da1dc71d046df Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 6 Aug 2015 08:56:36 +1000 Subject: [PATCH] Back off on the kicked connections log --- client.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 2bfae3b7..ac54b86a 100644 --- a/client.go +++ b/client.go @@ -22,6 +22,7 @@ import ( "strings" "time" + "github.com/anacrolix/missinggo" . "github.com/anacrolix/missinggo" "github.com/anacrolix/missinggo/perf" "github.com/anacrolix/sync" @@ -1763,7 +1764,9 @@ func (me *Client) addConnection(t *torrent, c *connection) bool { if c == nil { return false } - log.Printf("%s: dropping connection to make room for new one:\n %s", t, c) + if missinggo.CryHeard() { + log.Printf("%s: dropping connection to make room for new one:\n %s", t, c) + } c.Close() me.deleteConnection(t, c) } -- 2.48.1