mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
Also log response bodies for error 500s
This commit is contained in:
parent
98afbb5ea8
commit
35f0c342b6
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ namespace PluralKit.Bot
|
||||||
|
|
||||||
using (LogContext.PushProperty("Elastic", "yes?"))
|
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();
|
var content = await response.Content.ReadAsStringAsync();
|
||||||
LogContext.PushProperty("ResponseBody", content);
|
LogContext.PushProperty("ResponseBody", content);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue