]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Improve log message
authorMatt Joiner <anacrolix@gmail.com>
Sat, 20 Feb 2016 03:40:55 +0000 (14:40 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sat, 20 Feb 2016 03:40:55 +0000 (14:40 +1100)
reader.go

index 637c93548c1cd22c9ea588443f5db5c11cf1bbce..571ce4f2de620f56fe28ae0fdeb0b444af9b869e 100644 (file)
--- a/reader.go
+++ b/reader.go
@@ -136,7 +136,7 @@ func (r *Reader) readOnceAt(b []byte, pos int64) (n int, err error) {
                if n != 0 {
                        return
                }
-               log.Printf("error reading from torrent storage: %s", err)
+               log.Printf("%s: error reading from torrent storage pos=%d: %s", r.t, pos, err)
                r.t.torrent.updatePieceCompletion(pi)
                r.t.torrent.updatePiecePriority(pi)
        }