]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix logging of method ptr instead of calling it
authorMatt Joiner <anacrolix@gmail.com>
Mon, 14 Jul 2025 12:14:57 +0000 (22:14 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 14 Jul 2025 12:14:57 +0000 (22:14 +1000)
storage/file-torrent.go

index f59057d5cd3feb08b2138685b8b99fc1a85eb858..d3e458ab7cced767bb19b99991685a42ce952347 100644 (file)
@@ -53,7 +53,7 @@ func (fts *fileTorrentImpl) setCompletionFromPartFiles() error {
                        if fi.Size() == f.length() {
                                continue
                        }
-                       fts.logger().Warn("file has unexpected size", "file", f.safeOsPath, "size", fi.Size(), "expected", f.length)
+                       fts.logger().Warn("file has unexpected size", "file", f.safeOsPath, "size", fi.Size(), "expected", f.length())
                } else if !errors.Is(err, fs.ErrNotExist) {
                        fts.logger().Warn("error checking file size", "err", err)
                }