From 9a4cc0cbaf6f5abee86956ba048317c8f4a15134 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 28 Jun 2025 20:13:09 +0200 Subject: [PATCH] Only log Error on image-processing if we dont know what Exception was thrown --- API/Schema/Jobs/DownloadSingleChapterJob.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/API/Schema/Jobs/DownloadSingleChapterJob.cs b/API/Schema/Jobs/DownloadSingleChapterJob.cs index 7d2cc03..e4ff47c 100644 --- a/API/Schema/Jobs/DownloadSingleChapterJob.cs +++ b/API/Schema/Jobs/DownloadSingleChapterJob.cs @@ -153,7 +153,6 @@ public class DownloadSingleChapterJob : Job } catch (Exception e) { - Log.Error(e); if (e is UnknownImageFormatException or NotSupportedException) { //If the Image-Format is not processable by ImageSharp, we can't modify it. @@ -162,6 +161,10 @@ public class DownloadSingleChapterJob : Job { Log.Debug($"Unable to process {imagePath}: Invalid Content"); } + else + { + Log.Error(e); + } } }