diff --git a/src/app.py b/src/app.py index 5d9a346..922f154 100644 --- a/src/app.py +++ b/src/app.py @@ -77,3 +77,8 @@ register_all_error_handlers(app) app.add_url_rule("/healthz", "healthcheck", view_func=lambda: health.run()) +if __name__ != '__main__': + import logging + gunicorn_logger = logging.getLogger('gunicorn.error') + app.logger.handlers = gunicorn_logger.handlers + app.logger.setLevel(gunicorn_logger.level)