Skip to content

Commit

Permalink
Merge branch 'main' into fix-fake-callback
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels authored May 24, 2024
2 parents 26768d0 + dccea53 commit 0a7c290
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/celery/service_callback_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(
Expand Down

0 comments on commit 0a7c290

Please sign in to comment.