projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b62b00
)
Add debug level to piece hash failure log message
author
Matt Joiner <anacrolix@gmail.com>
Sat, 17 Jul 2021 08:52:41 +0000 (18:52 +1000)
committer
Matt Joiner <anacrolix@gmail.com>
Sat, 17 Jul 2021 08:52:41 +0000 (18:52 +1000)
torrent.go
patch
|
blob
|
history
diff --git
a/torrent.go
b/torrent.go
index cf73a2c806dd383cc36c037de04813096ac4155a..ab11a2e382a309293b377d7ca0c81a60485e1a26 100644
(file)
--- 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)
}
}