From c46f582ee2be5034c99fdf85c89dc308acb7968f Mon Sep 17 00:00:00 2001 From: Hazel K Date: Wed, 11 Sep 2024 22:02:19 -0400 Subject: [PATCH] chore: fix HTTP error logging --- ModShark/Reports/Reporter/WebHooks/DiscordPublisher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ModShark/Reports/Reporter/WebHooks/DiscordPublisher.cs b/ModShark/Reports/Reporter/WebHooks/DiscordPublisher.cs index 2ca4407..d44b823 100644 --- a/ModShark/Reports/Reporter/WebHooks/DiscordPublisher.cs +++ b/ModShark/Reports/Reporter/WebHooks/DiscordPublisher.cs @@ -52,7 +52,7 @@ public async Task SendReport(WebHook webHook, Report report, CancellationToken s if (response.StatusCode != HttpStatusCode.NoContent) { var details = await response.Content.ReadAsStringAsync(stoppingToken); - logger.LogError("Failed to send WebHook: got HTTP/{code} {details}", response.StatusCode, details); + logger.LogError("Failed to send WebHook: got HTTP/{code} {status} - {details}", (int)response.StatusCode, response.StatusCode, details); break; } }