diff --git a/bot/commands/medications.py b/bot/commands/medications.py index f41866e..7cc3a0b 100644 --- a/bot/commands/medications.py +++ b/bot/commands/medications.py @@ -172,9 +172,14 @@ async def handle_medication(message, session, parsed): if scheduled_time: request_body["scheduled_time"] = scheduled_time + print( + f"[DEBUG] About to call API: POST /api/medications/{med_id}/take with body: {request_body}", + flush=True, + ) resp, status = api_request( "post", f"/api/medications/{med_id}/take", token, request_body ) + print(f"[DEBUG] API response: status={status}, resp={resp}", flush=True) if status == 201: if scheduled_time: await message.channel.send(