From 95da90021306265f2dc34421ed544f432da34841 Mon Sep 17 00:00:00 2001 From: Glax Date: Sat, 20 Jan 2024 16:33:47 +0100 Subject: [PATCH] Add url to Request-Error Output --- Tranga/MangaConnectors/HttpDownloadClient.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tranga/MangaConnectors/HttpDownloadClient.cs b/Tranga/MangaConnectors/HttpDownloadClient.cs index d8a3d40..54c9a22 100644 --- a/Tranga/MangaConnectors/HttpDownloadClient.cs +++ b/Tranga/MangaConnectors/HttpDownloadClient.cs @@ -44,10 +44,10 @@ internal class HttpDownloadClient : DownloadClient switch (e) { case TaskCanceledException: - Log($"Request timed out.\n\r{e}"); + Log($"Request timed out {url}.\n\r{e}"); return new RequestResult(HttpStatusCode.RequestTimeout, null, Stream.Null); case HttpRequestException: - Log($"Request failed\n\r{e}"); + Log($"Request failed {url}\n\r{e}"); return new RequestResult(HttpStatusCode.BadRequest, null, Stream.Null); } } @@ -55,7 +55,7 @@ internal class HttpDownloadClient : DownloadClient if (!response.IsSuccessStatusCode) { - Log($"Request-Error {response.StatusCode}: {response.ReasonPhrase}"); + Log($"Request-Error {response.StatusCode}: {url}"); return new RequestResult(response.StatusCode, null, Stream.Null); }