From f3ea8298db4420b9d06b5bd53a9eb7cc68255ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Willi=20M=C3=BCller?= Date: Thu, 29 Feb 2024 15:08:36 +0100 Subject: [PATCH] [REST] Detailed error handler logging (#383) --- 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.")