Lower logging level.
This commit is contained in:
parent
38ab46aa3d
commit
e7b3115a16
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user