Print SQLAlchemy logs only on dev environment
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user