]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Raise log level for failure to mark piece complete
authorMatt Joiner <anacrolix@gmail.com>
Mon, 25 Sep 2023 11:30:07 +0000 (21:30 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 25 Sep 2023 11:30:07 +0000 (21:30 +1000)
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()