]> Sergey Matveev's repositories - btrtrc.git/blobdiff - torrent.go
Raise log level for failure to mark piece complete
[btrtrc.git] / torrent.go
index 8b4745218864d81bb19ffda48140aa245f4cc044..6385a3fc026f9a2474ddc029908ef236ab30713a 100644 (file)
@@ -2143,7 +2143,7 @@ func (t *Torrent) pieceHashed(piece pieceIndex, passed bool, hashIoErr error) {
                }
                err := p.Storage().MarkComplete()
                if err != nil {
-                       t.logger.Printf("%T: error marking piece complete %d: %s", t.storage, piece, err)
+                       t.logger.Levelf(log.Warning, "%T: error marking piece complete %d: %s", t.storage, piece, err)
                }
                t.cl.lock()