From: Matt Joiner Date: Sat, 17 Jul 2021 08:52:41 +0000 (+1000) Subject: Add debug level to piece hash failure log message X-Git-Tag: v1.29.2~2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5eab39001f21d6a50c7684676bbe29ba6cd7d302;p=btrtrc.git Add debug level to piece hash failure log message --- diff --git a/torrent.go b/torrent.go index cf73a2c8..ab11a2e3 100644 --- a/torrent.go +++ b/torrent.go @@ -1857,7 +1857,9 @@ func (t *Torrent) pieceHashed(piece pieceIndex, passed bool, hashIoErr error) { if passed { pieceHashedCorrect.Add(1) } else { - log.Fmsg("piece %d failed hash: %d connections contributed", piece, len(p.dirtiers)).AddValues(t, p).Log(t.logger) + log.Fmsg( + "piece %d failed hash: %d connections contributed", piece, len(p.dirtiers), + ).AddValues(t, p).SetLevel(log.Debug).Log(t.logger) pieceHashedNotCorrect.Add(1) } }