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:
Kaifeng Wang 2019-07-24 13:14:14 +08:00
parent 491dbee619
commit a4f1288ee4
1 changed files with 1 additions and 1 deletions

View File

@ -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: