mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
HTTP 400: Log response body when it can't be decoded as json
This commit is contained in:
parent
8a9b69f2f5
commit
146bd401bf
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ class HTTP(object):
|
||||||
try:
|
try:
|
||||||
LOG.warning(r.json())
|
LOG.warning(r.json())
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
LOG.warning(r.text)
|
||||||
|
|
||||||
elif r.status_code == 500: # log and ignore.
|
elif r.status_code == 500: # log and ignore.
|
||||||
LOG.error("--[ 500 response ] %s", error)
|
LOG.error("--[ 500 response ] %s", error)
|
||||||
|
|
Loading…
Reference in a new issue