Skip to content

Commit

Permalink
chore: fix HTTP error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
warriordog committed Sep 12, 2024
1 parent c66fd88 commit c46f582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModShark/Reports/Reporter/WebHooks/DiscordPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit c46f582

Please sign in to comment.