diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-01-15 14:39:49 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-26 23:46:30 +0100 |
commit | b1d92793268f9db737837c0899272d576c45c537 (patch) | |
tree | 63baffbbdc8d21b7c9c1fe2d0e3ce004549bebe3 /src/bootstrap.py | |
parent | fixing stuffs (diff) | |
download | newspipe-b1d92793268f9db737837c0899272d576c45c537.tar.gz newspipe-b1d92793268f9db737837c0899272d576c45c537.tar.bz2 newspipe-b1d92793268f9db737837c0899272d576c45c537.zip |
fixing logging
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 |