Fixed access to conf.log in logging_setup

This commit is contained in:
Hemna 2024-03-14 11:41:34 -04:00
parent 71cd7e0ab5
commit c1acdc2510
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ CHANGES
v3.3.2
------
* Changelog for 3.3.2
* Remove warning during sample-config
* Removed print in utils

View File

@ -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()]