]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Log the storage TorrentImpl type
authorMatt Joiner <anacrolix@gmail.com>
Wed, 4 Jan 2017 07:15:49 +0000 (18:15 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 4 Jan 2017 07:15:49 +0000 (18:15 +1100)
torrent.go

index ac4d1c065c9d0b5c4998b559ba77224d5f120465..d51dbbe7adcadb8bee7da0af354f3239c1a56258 100644 (file)
@@ -637,7 +637,7 @@ func (t *Torrent) hashPiece(piece int) (ret metainfo.Hash) {
                return
        }
        if err != io.ErrUnexpectedEOF && !os.IsNotExist(err) {
-               log.Printf("unexpected error hashing piece with %T: %s", t.storage, err)
+               log.Printf("unexpected error hashing piece with %T: %s", t.storage.TorrentImpl, err)
        }
        return
 }