Skip to content
Snippets Groups Projects
Commit ab75380b authored by David Trattnig's avatar David Trattnig
Browse files

Add configurable debug mode.

parent 436fdaa6
No related branches found
No related tags found
No related merge requests found
Pipeline #753 failed
......@@ -12,9 +12,10 @@ db_host="localhost"
db_charset="utf8"
[monitoring]
logdir="/home/david/Code/aura/engine-api/logs"
logdir="./logs"
# possible values: debug, info, warning, error, critical
loglevel="info"
debug_flask="false"
[api]
api_port=8008
......
......@@ -42,6 +42,8 @@ def configure_flask(app):
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['ENV'] = "development"
app.config['FLASK_ENV'] = "development"
if config.get("debug_flask") == "true":
app.config['DEBUG'] = True
return app
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment