Lower logging level.

This commit is contained in:
yohan 2024-06-06 23:33:15 +02:00
parent 38ab46aa3d
commit e7b3115a16

View File

@ -51,7 +51,7 @@ with open('./conf.yml') as conf:
logging.getLogger().setLevel(logging.DEBUG)
elif os.environ['FLASK_ENV'] == 'production':
flask_settings_env = yaml_conf.get("flask_settings_prod")
logging.getLogger().setLevel(logging.WARNING)
logging.getLogger().setLevel(logging.INFO)
else:
logging.error("FLASK_ENV must be set to development or production.")
sys.exit(1)