Print SQLAlchemy logs only on dev environment

This commit is contained in:
Montana 2019-02-20 11:36:59 -05:00
parent 2ccf8d8038
commit 84e6d9300d

View File

@ -72,6 +72,8 @@ def make_app(config):
if ENV != "prod":
app.register_blueprint(dev_routes)
if ENV == "dev":
app.config["SQLALCHEMY_ECHO"] = True
app.form_cache = FormCache(app.redis)