Merge "Set log level to debug when dispatching metrics"

This commit is contained in:
Zuul 2024-11-25 16:58:53 +00:00 committed by Gerrit Code Review
commit 255238e035
2 changed files with 3 additions and 4 deletions

View File

@ -43,7 +43,6 @@ LOG = logging.getLogger(__name__)
CONF = cfg.CONF
logging.register_options(CONF)
logging.setup(CONF, 'oslo-metrics')
LOG.logger.setLevel(logging.DEBUG)
class MetricsListener():

View File

@ -64,7 +64,7 @@ class MessageRouter():
LOG.error("Failed to load labels func from metrics %s: %s" %
(metric.name, e))
return
LOG.info("Get labels with %s: %s" % (metric.name, metric.labels))
LOG.debug("Get labels with %s: %s" % (metric.name, metric.labels))
# perform action
try:
@ -77,5 +77,5 @@ class MessageRouter():
LOG.error("Failed to perform metric actionv %s, %s: %s" %
(metric.action.action, metric.action.value, e))
return
LOG.info("Perform action %s for %s metrics" %
(metric.action.action, metric.name))
LOG.debug("Perform action %s for %s metrics" %
(metric.action.action, metric.name))