diff --git a/app.py b/app.py index c996019..827d0fe 100644 --- a/app.py +++ b/app.py @@ -15,4 +15,9 @@ def index(): return jsonify(count=out) -app.run(host="0.0.0.0", port=int("8080"), debug=False) +if __name__ != '__main__': + import logging + + gunicorn_logger = logging.getLogger('gunicorn.error') + app.logger.handlers = gunicorn_logger.handlers + app.logger.setLevel(gunicorn_logger.level)