diff --git a/app/celery/service_callback_tasks.py b/app/celery/service_callback_tasks.py index af3d51e3b2..9296958f85 100644 --- a/app/celery/service_callback_tasks.py +++ b/app/celery/service_callback_tasks.py @@ -59,6 +59,7 @@ def send_complaint_to_service(self, complaint_data): def _send_data_to_service_callback_api(self, data, service_callback_url, token, function_name): notification_id = data["notification_id"] if "notification_id" in data else data["id"] try: + current_app.logger.info("{} sending {} to {}".format(function_name, notification_id, service_callback_url)) response = request( method="POST", url=service_callback_url, @@ -69,9 +70,11 @@ def _send_data_to_service_callback_api(self, data, service_callback_url, token, }, timeout=5, ) + current_app.logger.info( f"{function_name} sending {notification_id} to {service_callback_url}, response {response.status_code}" ) + response.raise_for_status() except RequestException as e: current_app.logger.warning(