From cc687df4e810367d26affa852cdbee227494b8d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giosu=C3=A8=20Sulipano?= <34242779+imgios@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:03:35 +0200 Subject: [PATCH] cast response status code to string in the logs --- servarr/config/scripts/init-jellyfin.py | 2 +- servarr/config/scripts/init-prowlarr.py | 2 +- servarr/config/scripts/init-sonarr.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/servarr/config/scripts/init-jellyfin.py b/servarr/config/scripts/init-jellyfin.py index 43a4e63..7660941 100644 --- a/servarr/config/scripts/init-jellyfin.py +++ b/servarr/config/scripts/init-jellyfin.py @@ -48,7 +48,7 @@ def post(url: str, headers: dict, body: dict | None): # -> str | dict logger.debug(" ".join([ "Status Code:", - response.status_code, + str(response.status_code), "Response body:", response.text ])) diff --git a/servarr/config/scripts/init-prowlarr.py b/servarr/config/scripts/init-prowlarr.py index a09ae34..c212320 100644 --- a/servarr/config/scripts/init-prowlarr.py +++ b/servarr/config/scripts/init-prowlarr.py @@ -53,7 +53,7 @@ def post(url: str, headers: dict, body: dict): logger.debug(" ".join([ "Status Code:", - response.status_code, + str(response.status_code), "Response body:", response.text ])) diff --git a/servarr/config/scripts/init-sonarr.py b/servarr/config/scripts/init-sonarr.py index 09b23a2..fcd098c 100644 --- a/servarr/config/scripts/init-sonarr.py +++ b/servarr/config/scripts/init-sonarr.py @@ -48,7 +48,7 @@ def post(url: str, headers: dict, body: dict): logger.debug(" ".join([ "Status Code:", - response.status_code, + str(response.status_code), "Response body:", response.text ]))