From 99393c59bd842210bd41bbb684021fbda8430ff0 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Tue, 29 Oct 2019 14:15:43 +0000 Subject: [PATCH] log when skipping a download --- .../groovy/com/muwire/core/download/DownloadManager.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/download/DownloadManager.groovy b/core/src/main/groovy/com/muwire/core/download/DownloadManager.groovy index 72d6943e..1969d9a0 100644 --- a/core/src/main/groovy/com/muwire/core/download/DownloadManager.groovy +++ b/core/src/main/groovy/com/muwire/core/download/DownloadManager.groovy @@ -135,8 +135,10 @@ public class DownloadManager { else incompletes = new File(home, "incompletes") - if (json.pieceSizePow2 == null || json.pieceSizePow2 == 0) + if (json.pieceSizePow2 == null || json.pieceSizePow2 == 0) { + log.warning("Skipping $file because pieceSizePow2=$json.pieceSizePow2") return // skip this download as it's corrupt anyway + } Pieces pieces = getPieces(infoHash, (long)json.length, json.pieceSizePow2, sequential)