Fix wrong log level during heartbeat
It appears that tooz used log.warning which is a method instead of an integer required by tenacity. Change-Id: I0dd40f578ff0fc7bd1cd64c7889de2148ae6b06c Closes-Bug: #1837693
This commit is contained in:
@@ -183,7 +183,7 @@ class Heart(object):
|
||||
"""Inner beating loop."""
|
||||
retry = tenacity.Retrying(
|
||||
wait=tenacity.wait_fixed(1),
|
||||
before_sleep=tenacity.before_sleep_log(LOG, logging.warning),
|
||||
before_sleep=tenacity.before_sleep_log(LOG, logging.WARNING),
|
||||
)
|
||||
while not self._dead.is_set():
|
||||
with timeutils.StopWatch() as w:
|
||||
|
||||
Reference in New Issue
Block a user