From: Matt Joiner Date: Wed, 20 Nov 2019 09:04:47 +0000 (+1100) Subject: Include piece index in log message X-Git-Tag: v1.10.0~8 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=da2d174fc97fe12633ed5113d65fcd06cee37f34;p=btrtrc.git Include piece index in log message --- diff --git a/torrent.go b/torrent.go index 917367e8..50e56ece 100644 --- a/torrent.go +++ b/torrent.go @@ -1527,7 +1527,7 @@ func (t *Torrent) pieceHashed(piece pieceIndex, correct bool) { if correct { pieceHashedCorrect.Add(1) } else { - log.Fmsg("piece failed hash: %d connections contributed", len(touchers)).AddValues(t, p).Log(t.logger) + log.Fmsg("piece %d failed hash: %d connections contributed", piece, len(touchers)).AddValues(t, p).Log(t.logger) pieceHashedNotCorrect.Add(1) } }