Fixed log handler
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Pünkösd Marcell 2021-07-26 17:06:15 +02:00
parent a844a13608
commit 67c5d723ca
1 changed files with 5 additions and 0 deletions

View File

@ -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)