Also log response bodies for error 500s

This commit is contained in:
Ske 2020-08-27 21:54:33 +02:00
parent 98afbb5ea8
commit 35f0c342b6

View File

@ -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);