Application logs hiding by alembic fixed

This commit is contained in:
Alexander Kislitsky 2014-09-26 18:53:11 +04:00
parent 7fc6ad6fe9
commit fce7e1f495
2 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,7 @@ class Production(object):
LOG_FILE = '/var/log/fuel-stat/collector.log'
LOG_LEVEL = logging.ERROR
LOG_ROTATION = False
LOGGER_NAME = 'collector'
SQLALCHEMY_DATABASE_URI = 'postgresql://collector:*****@localhost/collector'

View File

@ -11,7 +11,7 @@
# Logging configuration
[loggers]
keys = root,sqlalchemy,alembic
keys = root,sqlalchemy,alembic,collector
[handlers]
keys = console
@ -34,6 +34,11 @@ level = INFO
handlers =
qualname = alembic
[logger_collector]
level = DEBUG
handlers =
qualname = collector
[handler_console]
class = StreamHandler
args = (sys.stderr,)