mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Log HTTP 400 json payloads
This commit is contained in:
parent
a7e4fa8a5c
commit
6c3b682ef0
1 changed files with 8 additions and 0 deletions
|
@ -135,6 +135,14 @@ class HTTP(object):
|
|||
|
||||
raise HTTPException("Unauthorized", error)
|
||||
|
||||
elif r.status_code == 400:
|
||||
LOG.warning(error)
|
||||
LOG.warning(data)
|
||||
try:
|
||||
LOG.warning(r.json())
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
elif r.status_code == 500: # log and ignore.
|
||||
LOG.error("--[ 500 response ] %s", error)
|
||||
|
||||
|
|
Loading…
Reference in a new issue