Use map_config to add logging on dev and test
This commit is contained in:
parent
84e6d9300d
commit
c7e2e8b5a5
@ -73,9 +73,6 @@ def make_app(config):
|
|||||||
if ENV != "prod":
|
if ENV != "prod":
|
||||||
app.register_blueprint(dev_routes)
|
app.register_blueprint(dev_routes)
|
||||||
|
|
||||||
if ENV == "dev":
|
|
||||||
app.config["SQLALCHEMY_ECHO"] = True
|
|
||||||
|
|
||||||
app.form_cache = FormCache(app.redis)
|
app.form_cache = FormCache(app.redis)
|
||||||
|
|
||||||
apply_authentication(app)
|
apply_authentication(app)
|
||||||
@ -135,6 +132,7 @@ def map_config(config):
|
|||||||
**config["default"],
|
**config["default"],
|
||||||
"ENV": config["default"]["ENVIRONMENT"],
|
"ENV": config["default"]["ENVIRONMENT"],
|
||||||
"DEBUG": config["default"].getboolean("DEBUG"),
|
"DEBUG": config["default"].getboolean("DEBUG"),
|
||||||
|
"SQLALCHEMY_ECHO": config["default"].getboolean("DEBUG"),
|
||||||
"CLASSIFIED": config["default"].getboolean("CLASSIFIED"),
|
"CLASSIFIED": config["default"].getboolean("CLASSIFIED"),
|
||||||
"PORT": int(config["default"]["PORT"]),
|
"PORT": int(config["default"]["PORT"]),
|
||||||
"SQLALCHEMY_DATABASE_URI": config["default"]["DATABASE_URI"],
|
"SQLALCHEMY_DATABASE_URI": config["default"]["DATABASE_URI"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user