From: Matt Joiner Date: Wed, 4 Jan 2017 07:15:49 +0000 (+1100) Subject: Log the storage TorrentImpl type X-Git-Tag: v1.0.0~495 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=55b6025f80770c738f764ef0ade50e96f2f44286;p=btrtrc.git Log the storage TorrentImpl type --- diff --git a/torrent.go b/torrent.go index ac4d1c06..d51dbbe7 100644 --- a/torrent.go +++ b/torrent.go @@ -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 }