diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-03 07:11:37 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-03 07:11:37 +0100 |
commit | da929a367c3f1fe5f3546be82e47111c2fa84ad3 (patch) | |
tree | 89380f41b802256d8fdbf724e7d9e63b48209b4a /src/bootstrap.py | |
parent | Merge pull request #30 from jaesivsm/master (diff) | |
parent | writing a bit of doc, moving crawler together (diff) | |
download | newspipe-da929a367c3f1fe5f3546be82e47111c2fa84ad3.tar.gz newspipe-da929a367c3f1fe5f3546be82e47111c2fa84ad3.tar.bz2 newspipe-da929a367c3f1fe5f3546be82e47111c2fa84ad3.zip |
Merge pull request #31 from jaesivsm/master
redoing UI
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r-- | src/bootstrap.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py index d790ee2f..cd1e71e4 100644 --- a/src/bootstrap.py +++ b/src/bootstrap.py @@ -10,12 +10,13 @@ from urllib.parse import urlsplit def set_logging(log_path, log_level=logging.INFO, log_format='%(asctime)s %(levelname)s %(message)s'): - logger = logging.getLogger('jarr') formater = logging.Formatter(log_format) handler = logging.FileHandler(log_path) handler.setFormatter(formater) - logger.addHandler(handler) - logger.setLevel(log_level) + for logger_name in ('bootstrap', 'web', 'manager', 'runserver'): + logger = logging.getLogger(logger_name) + logger.addHandler(handler) + logger.setLevel(log_level) from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy |