diff --git a/app.py b/app.py index 686bd25..2964ebc 100644 --- a/app.py +++ b/app.py @@ -96,7 +96,10 @@ app = create_app() app.wsgi_app = ProxyFix(app.wsgi_app, num_proxies=1) limiter = Limiter(app, key_func=get_remote_address) -log.info("Bound reverse proxy wsgi app") +if __name__ != '__main__': + gunicorn_logger = logging.getLogger('gunicorn.error') + app.logger.handlers = gunicorn_logger.handlers + app.logger.setLevel(gunicorn_logger.level) def flash_form_errors(form):