From: Matt Joiner Date: Wed, 30 Nov 2016 07:01:39 +0000 (+1100) Subject: Fix logging of trust slice X-Git-Tag: v1.0.0~519 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1f2f037209405c7be79755d7f02f33d2024d0d18;p=btrtrc.git Fix logging of trust slice --- diff --git a/torrent.go b/torrent.go index ed58da14..b9aefae3 100644 --- a/torrent.go +++ b/torrent.go @@ -1446,12 +1446,12 @@ func (t *Torrent) pieceHashed(piece int, correct bool) { c.badPiecesDirtied++ } slices.Sort(touchers, connLessTrusted) - log.Printf("dropping first corresponding conn from trust: %s", func() (ret []int) { + log.Printf("dropping first corresponding conn from trust: %v", func() (ret []int) { for _, c := range touchers { ret = append(ret, c.netGoodPiecesDirtied()) } return - }) + }()) c := touchers[0] t.cl.banPeerIP(missinggo.AddrIP(c.remoteAddr())) c.Drop()