Merge "carbonara: rewrite lock debug statement"

This commit is contained in:
Jenkins 2017-05-19 14:19:48 +00:00 committed by Gerrit Code Review
commit 9633937202
1 changed files with 1 additions and 5 deletions

View File

@ -375,16 +375,12 @@ class CarbonaraBasedStorage(storage.StorageDriver):
for metric in metrics:
# NOTE(gordc): must lock at sack level
try:
locksw = timeutils.StopWatch().start()
LOG.debug("Processing measures for %s", metric)
with self.incoming.process_measure_for_metric(metric) \
as measures:
self._compute_and_store_timeseries(metric, measures)
LOG.debug("Metric %s locked during %.2f seconds",
metric.id, locksw.elapsed())
LOG.debug("Measures for metric %s processed", metric)
except Exception:
LOG.debug("Metric %s locked during %.2f seconds",
metric.id, locksw.elapsed())
if sync:
raise
LOG.error("Error processing new measures", exc_info=True)