@cryptotaxi247 / CoPilot / commits / 6cdc0b8f

fix: add logging for workflow validation and POST request sending

taylorwalton committed Feb 11, 2025 at 12:21 UTC 6cdc0b8fa96cfb37ec2e99b149b51c7207e641a4
2 files changed +2
backend/app/connectors/shuffle/routes/workflows.py
+1
@@ -28,6 +28,7 @@ async def validate_execution_id(workflow_id: str) -> bool:
28 """
29 workflows = await get_workflows()
30 for workflow in workflows.workflows:
31 + logger.info(f"Workflow ID: {workflow['id']}")
32 if workflow["id"] == workflow_id:
33 logger.info("Workflow validation successful")
34 return True
backend/app/connectors/shuffle/utils/universal.py
+1
@@ -144,6 +144,7 @@ async def send_post_request(
144 HEADERS = {
145 "Authorization": f"Bearer {attributes['connector_api_key']}",
146 }
147 + logger.info(f"Sending POST request to {attributes['connector_url']}{endpoint}")
148 response = requests.post(
149 f"{attributes['connector_url']}{endpoint}",
150 headers=HEADERS,