From c370e656f15639b022ccba249190c061d1ba25a3 Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 16 Jun 2025 00:10:59 +0200 Subject: [PATCH] HttpDownloadClient add a Debug statement if the request fails with status code and content --- API/MangaDownloadClients/HttpDownloadClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/API/MangaDownloadClients/HttpDownloadClient.cs b/API/MangaDownloadClients/HttpDownloadClient.cs index 2c67632..fd0e6be 100644 --- a/API/MangaDownloadClients/HttpDownloadClient.cs +++ b/API/MangaDownloadClients/HttpDownloadClient.cs @@ -40,6 +40,7 @@ internal class HttpDownloadClient : DownloadClient if (!response.IsSuccessStatusCode) { + Log.Debug($"Request returned status code {response.StatusCode} {response.ReasonPhrase}:\n{response.Content.ReadAsStringAsync()}"); return new (response.StatusCode, null, Stream.Null); }