diff --git a/app/celery/service_callback_tasks.py b/app/celery/service_callback_tasks.py index d5b413922f..20569ab412 100644 --- a/app/celery/service_callback_tasks.py +++ b/app/celery/service_callback_tasks.py @@ -59,6 +59,13 @@ 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,14 +76,6 @@ def _send_data_to_service_callback_api(self, data, service_callback_url, token, }, timeout=60, ) - current_app.logger.info( - "{} sending {} to {}, response {}".format( - function_name, - notification_id, - service_callback_url, - response.status_code, - ) - ) response.raise_for_status() except RequestException as e: current_app.logger.warning(