aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.py')
-rw-r--r--bootstrap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap.py b/bootstrap.py
index 5d599146..83862640 100644
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -21,14 +21,14 @@ def set_logging(log_path, log_level=logging.DEBUG,
logger.addHandler(handler)
logger.setLevel(log_level)
-set_logging(conf.LOG_PATH)
-
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
# Create Flask application
application = Flask('pyaggr3g470r')
application.debug = conf.WEBSERVER_DEBUG
+set_logging(conf.LOG_PATH, log_level=logging.DEBUG if conf.WEBSERVER_DEBUG
+ else logging.INFO)
# Create dummy secrey key so we can use sessions
application.config['SECRET_KEY'] = getattr(conf, 'WEBSERVER_SECRET', None)
bgstack15