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:
parent
491dbee619
commit
a4f1288ee4
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue