diff --git a/Myriad/Rest/BaseRestClient.cs b/Myriad/Rest/BaseRestClient.cs index 2242bab4..0db51a59 100644 --- a/Myriad/Rest/BaseRestClient.cs +++ b/Myriad/Rest/BaseRestClient.cs @@ -231,8 +231,11 @@ public class BaseRestClient: IAsyncDisposable var body = await response.Content.ReadAsStringAsync(); var apiError = TryParseApiError(body); if (apiError != null) + { + using var _ = LogContext.PushProperty("DiscordErrorBody", body); _logger.Warning("Discord API error: {DiscordErrorCode} {DiscordErrorMessage}", apiError.Code, apiError.Message); + } throw CreateDiscordException(response, body, apiError); }