Include the piece number when logging piece hash errors

This commit is contained in:
Matt Joiner 2019-08-21 21:00:47 +10:00
parent cb1bf0f413
commit 14fbacd024
1 changed files with 1 additions and 1 deletions

View File

@ -745,7 +745,7 @@ func (t *Torrent) hashPiece(piece pieceIndex) (ret metainfo.Hash) {
return
}
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
}