Merge "Set log level to debug when dispatching metrics"
This commit is contained in:
commit
255238e035
@ -43,7 +43,6 @@ LOG = logging.getLogger(__name__)
|
|||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
logging.register_options(CONF)
|
logging.register_options(CONF)
|
||||||
logging.setup(CONF, 'oslo-metrics')
|
logging.setup(CONF, 'oslo-metrics')
|
||||||
LOG.logger.setLevel(logging.DEBUG)
|
|
||||||
|
|
||||||
|
|
||||||
class MetricsListener():
|
class MetricsListener():
|
||||||
|
@ -64,7 +64,7 @@ class MessageRouter():
|
|||||||
LOG.error("Failed to load labels func from metrics %s: %s" %
|
LOG.error("Failed to load labels func from metrics %s: %s" %
|
||||||
(metric.name, e))
|
(metric.name, e))
|
||||||
return
|
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
|
# perform action
|
||||||
try:
|
try:
|
||||||
@ -77,5 +77,5 @@ class MessageRouter():
|
|||||||
LOG.error("Failed to perform metric actionv %s, %s: %s" %
|
LOG.error("Failed to perform metric actionv %s, %s: %s" %
|
||||||
(metric.action.action, metric.action.value, e))
|
(metric.action.action, metric.action.value, e))
|
||||||
return
|
return
|
||||||
LOG.info("Perform action %s for %s metrics" %
|
LOG.debug("Perform action %s for %s metrics" %
|
||||||
(metric.action.action, metric.name))
|
(metric.action.action, metric.name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user