Skip to content

Commit

Permalink
adds details in error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
willi-mueller committed Feb 29, 2024
1 parent 76710ea commit 77566d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sources/rest_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def paginate(
if response_actions:
action_type = self.handle_response_actions(response, response_actions)
if action_type == "ignore":
logger.info("Ignoring response and stopping pagination.")
logger.info(
f"Error {response.status_code}. Ignoring response '{response.json()}' and stopping pagination."
)
break
elif action_type == "retry":
logger.info("Retrying request.")
Expand Down

0 comments on commit 77566d3

Please sign in to comment.