From 0f52e2d62059cf438e9b7264ea8252b229d1e049 Mon Sep 17 00:00:00 2001 From: Danial Khoshkhou Date: Sat, 27 Apr 2024 00:06:18 +0100 Subject: [PATCH] #39 Allow debugging event payload --- lambda/app.py | 1 + lambda/app_handler/provider/app.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lambda/app.py b/lambda/app.py index f46463b..8abb1ee 100644 --- a/lambda/app.py +++ b/lambda/app.py @@ -17,6 +17,7 @@ def handler(event, context): https://docs.aws.amazon.com/lambda/latest/dg/python-context.html """ + logging.debug(event) logging.debug(context) app_provider = AppProvider(event) return app_provider.response diff --git a/lambda/app_handler/provider/app.py b/lambda/app_handler/provider/app.py index e695b8c..bf4a9e6 100644 --- a/lambda/app_handler/provider/app.py +++ b/lambda/app_handler/provider/app.py @@ -75,7 +75,7 @@ def get_response(self, event): request_provider = self.app_runner.request_provider - # hCapture runner that should prevent further runners if validation failes + # hCapture runner that should prevent further runners if validation fails logging.debug('Executing hCaptcha runner') self.hcaptcha_runner.run(request_provider, self.response_provider) if self.hcaptcha_runner.error_response is not None: