fix logging

This commit is contained in:
Noah Levitt 2017-11-30 16:08:20 -08:00
parent c5f33bda7a
commit 9d0367b96b

View File

@ -70,7 +70,8 @@ class TroughClient(object):
with self._dirty_segments_lock:
dirty_segments = list(self._dirty_segments)
self._dirty_segments.clear()
logging.info('promoting %s trough segments')
logging.info(
'promoting %s trough segments', len(dirty_segments))
for segment in dirty_segments:
try:
self.promote(segment)