diff --git a/services/pet-store/src/app.py b/services/pet-store/src/app.py index 058312f..ad78a4b 100644 --- a/services/pet-store/src/app.py +++ b/services/pet-store/src/app.py @@ -16,7 +16,17 @@ root_path='/prod' if 'LAMBDA_TASK_ROOT' in os.environ else '/' ) -handler = Mangum(app) +mangum_handler = Mangum(app) + +def handler(event, context): + logger.info('Handling event: %s', event) + logger.info('Handling context: %s', context) + + result = mangum_handler(event, context) + + logger.info('Handling result: %s', result) + + return result @app.get("/")