From 35f0c342b6873fff2cd6474c4e3a612674aa4bcb Mon Sep 17 00:00:00 2001 From: Ske Date: Thu, 27 Aug 2020 21:54:33 +0200 Subject: [PATCH] Also log response bodies for error 500s --- PluralKit.Bot/Tracing/DiscordRequestObserver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Tracing/DiscordRequestObserver.cs b/PluralKit.Bot/Tracing/DiscordRequestObserver.cs index 16dd264d..6bcd0052 100644 --- a/PluralKit.Bot/Tracing/DiscordRequestObserver.cs +++ b/PluralKit.Bot/Tracing/DiscordRequestObserver.cs @@ -73,7 +73,7 @@ namespace PluralKit.Bot using (LogContext.PushProperty("Elastic", "yes?")) { - if ((int) response.StatusCode >= 400 && (int) response.StatusCode < 500) + if ((int) response.StatusCode >= 400) { var content = await response.Content.ReadAsStringAsync(); LogContext.PushProperty("ResponseBody", content);