From 16ff29904a429a52aef4f213f300fde4930e4c24 Mon Sep 17 00:00:00 2001 From: Guillaume Charest <1690085+gcharest@users.noreply.github.com> Date: Fri, 13 Sep 2024 08:52:00 -0400 Subject: [PATCH] fix: add detailed payload logging for debugging (#644) --- app/server/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/server/server.py b/app/server/server.py index cfb1e7d4..b8f2bacc 100644 --- a/app/server/server.py +++ b/app/server/server.py @@ -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())