Skip to content

Commit

Permalink
#39 Allow debugging event payload
Browse files Browse the repository at this point in the history
  • Loading branch information
danial-k committed Apr 26, 2024
1 parent 1684fbe commit 0f52e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lambda/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lambda/app_handler/provider/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0f52e2d

Please sign in to comment.