Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add DEBUG mode to the API Gateway Event Handler #4

Closed
michaelbrewer opened this issue May 8, 2021 · 2 comments
Closed
Labels
Projects

Comments

@michaelbrewer
Copy link
Contributor

Is your feature request related to a problem? Please describe.

When there was an error while developing my initial lambda, i would like to be able to see more information when debug mode is turned on.

Describe the solution you'd like

Add a DEBUG mode or feature flag, that should never used in production, which can do the following:

  1. Pretty print the json responses
  2. Get more context when there is an error
  3. Relax rules for setting up CORS

Describe alternatives you've considered

For debugging errors, you can also look at the lambda logs, but i would be nice to allow for the end user to get more context event before accessing the logs.

Additional context

@michaelbrewer michaelbrewer changed the title Add DEBUG mode to the API Gateway Event Handler Feature Request: Add DEBUG mode to the API Gateway Event Handler May 8, 2021
@heitorlessa heitorlessa transferred this issue from aws-powertools/powertools-lambda-python May 13, 2021
@heitorlessa heitorlessa added this to Ideas in Roadmap May 13, 2021
@heitorlessa heitorlessa moved this from Ideas to Backlog in Roadmap May 13, 2021
@michaelbrewer
Copy link
Contributor Author

@heitorlessa i have a PR up for this

@heitorlessa heitorlessa moved this from Backlog to Working on it in Roadmap Jul 16, 2021
@heitorlessa heitorlessa moved this from Working on it to Shipped in Roadmap Jul 27, 2021
@heitorlessa
Copy link
Contributor

heitorlessa commented Jul 27, 2021

Released in 1.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Roadmap
Shipped
Development

No branches or pull requests

2 participants