From 2378de49ba37116c5bf93054fd6aed65fa44022a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 8 Mar 2015 12:07:36 +0100 Subject: Moved duplicate() function in utils.py. Some minor cosmethic changes. --- bootstrap.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bootstrap.py') 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) -- cgit From 9d733d728c93bfa959a7691aa0c166ffefcc9ae4 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 8 Mar 2015 12:22:21 +0100 Subject: fix. --- bootstrap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstrap.py') diff --git a/bootstrap.py b/bootstrap.py index 671552b3..3b76d0ac 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -9,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) @@ -20,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) -- cgit