Add failure logs to DiscordWebhook #30248
Labels
D3: Low
Difficulty: Some codebase knowledge required.
DB: Beginner Friendly
Difficulty: Great for beginners. Unambiguous in scope, and explains how to achieve the result.
Content.Server/Discord/DiscordWebhook.cs
is used to send messages from various sources to various Discord webhook targets. It does not itself perform any error handling, and to my knowledge neither do all of the calls to it, so it is not currently possible to know when an issue with the webhook endpoint occurs or causes a message to be dropped. While an ideal solution to this would be #30247, adding logs would help to determine how impactful #30247 would be.Content.Server/Discord/DiscordWebhook.cs
, check the status of the response_sawmill
to log every time that the response is not 2XX (200-299)Retry-After
,X-RateLimit-Global
, andX-RateLimit-Scope
for a 429)The text was updated successfully, but these errors were encountered: