Closed
Description
What were you trying to accomplish?
When I activate the debug mode for API Gateaway (https://awslabs.github.io/aws-lambda-powertools-python/1.24.2/core/event_handler/api_gateway/#debug-mode) it's spam my cloudwatch log. Instead havings a single entry with the object, it's creating a single entry for each line of input object.
Expected Behavior
Current Behavior
One cloudwatch entry for each line of the object :
Steps to Reproduce (for bugs)
app = ApiGatewayResolver(debug=True)
@logger.inject_lambda_context(correlation_id_path=correlation_paths.API_GATEWAY_REST)
def lambda_handler(event, context):
return app.resolve(event, context)
@app.get("/api/v1/test")
def test():
return "Hello"
Environment
- Powertools version used: 1.24.1
- Packaging format (Layers, PyPi):
- AWS Lambda function runtime: Python 3.9 - Graviton
# paste logs here