Print SQLAlchemy logs only on dev environment
This commit is contained in:
parent
2ccf8d8038
commit
84e6d9300d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user