Skip to content

Commit

Permalink
cast response status code to string in the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
imgios authored Apr 17, 2024
1 parent 336db79 commit cc687df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion servarr/config/scripts/init-jellyfin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]))
Expand Down
2 changes: 1 addition & 1 deletion servarr/config/scripts/init-prowlarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]))
Expand Down
2 changes: 1 addition & 1 deletion servarr/config/scripts/init-sonarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]))
Expand Down

0 comments on commit cc687df

Please sign in to comment.