Skip to content

Commit

Permalink
fix: add detailed payload logging for debugging (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcharest authored Sep 13, 2024
1 parent 37f68b0 commit 16ff299
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ def handle_webhook(id: str, payload: WebhookPayload | str, request: Request):
if webhooks.is_active(id):
webhooks.increment_invocation_count(id)
if isinstance(payload, str):
logging.info(
f"Received message: {payload}"
) # log the full message for debugging
try:
payload = AwsSnsPayload.parse_raw(payload)
sns_message_validator.validate_message(message=payload.dict())
Expand Down

0 comments on commit 16ff299

Please sign in to comment.