Also log response bodies for error 500s
This commit is contained in:
parent
98afbb5ea8
commit
35f0c342b6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user