Include the piece number when logging piece hash errors
This commit is contained in:
parent
cb1bf0f413
commit
14fbacd024
|
@ -745,7 +745,7 @@ func (t *Torrent) hashPiece(piece pieceIndex) (ret metainfo.Hash) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err != io.ErrUnexpectedEOF && !os.IsNotExist(err) {
|
if err != io.ErrUnexpectedEOF && !os.IsNotExist(err) {
|
||||||
t.logger.Printf("unexpected error hashing piece with %T: %s", t.storage.TorrentImpl, err)
|
t.logger.Printf("unexpected error hashing piece %d through %T: %s", piece, t.storage.TorrentImpl, err)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue