mirror of
https://github.com/craigerl/aprsd.git
synced 2025-04-12 22:48:50 -04:00
Fixed access to conf.log in logging_setup
This commit is contained in:
parent
71cd7e0ab5
commit
c1acdc2510
@ -4,6 +4,7 @@ CHANGES
|
||||
v3.3.2
|
||||
------
|
||||
|
||||
* Changelog for 3.3.2
|
||||
* Remove warning during sample-config
|
||||
* Removed print in utils
|
||||
|
||||
|
@ -6,7 +6,7 @@ import sys
|
||||
from loguru import logger
|
||||
from oslo_config import cfg
|
||||
|
||||
from aprsd import conf
|
||||
from aprsd.conf import log as conf_log
|
||||
|
||||
|
||||
CONF = cfg.CONF
|
||||
@ -38,7 +38,7 @@ def setup_logging(loglevel=None, quiet=False):
|
||||
if not loglevel:
|
||||
log_level = CONF.logging.log_level
|
||||
else:
|
||||
log_level = conf.log.LOG_LEVELS[loglevel]
|
||||
log_level = conf_log.LOG_LEVELS[loglevel]
|
||||
|
||||
# intercept everything at the root logger
|
||||
logging.root.handlers = [InterceptHandler()]
|
||||
|
Loading…
Reference in New Issue
Block a user