mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-23 03:24:15 +02:00
HttpDownloadClient add a Debug statement if the request fails with status code and content
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user