From: Matt Joiner Date: Wed, 5 Aug 2015 22:56:36 +0000 (+1000) Subject: Back off on the kicked connections log X-Git-Tag: v1.0.0~1073 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cb003081576beb50ca61576aa67da1dc71d046df;p=btrtrc.git Back off on the kicked connections log --- 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) }