From 77566d3028024eae99c7eb161aada070848bca40 Mon Sep 17 00:00:00 2001 From: Willi Date: Thu, 29 Feb 2024 19:03:14 +0530 Subject: [PATCH] adds details in error logging --- sources/rest_api/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/rest_api/client.py b/sources/rest_api/client.py index 4105f167a..d2ba1e28b 100644 --- a/sources/rest_api/client.py +++ b/sources/rest_api/client.py @@ -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.")