aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.py')
-rw-r--r--bootstrap.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bootstrap.py b/bootstrap.py
index 5cfd2250..671552b3 100644
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -1,3 +1,6 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -
+
# required imports and code exection for basic functionning
import os
@@ -6,7 +9,7 @@ import logging
def set_logging(log_path, log_level=logging.INFO,
log_format='%(asctime)s %(levelname)s %(message)s'):
- logger = logging.getLogger('pyaggr3g470r')
+ logger = logging.getLogger('pyAggr3g470r')
formater = logging.Formatter(log_format)
handler = logging.FileHandler(log_path)
handler.setFormatter(formater)
@@ -17,7 +20,7 @@ from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
# Create Flask application
-application = Flask('pyaggr3g470r')
+application = Flask('pyAggr3g470r')
application.debug = conf.WEBSERVER_DEBUG
set_logging(conf.LOG_PATH, log_level=logging.DEBUG if conf.WEBSERVER_DEBUG
else logging.INFO)
bgstack15