Remove unnecessary log message
This commit removes a useless log message from call_until_true. The debug log there provides no useful debug information, just printing that the sleep loop iterated doesn't enable any extra debugging. In the worst case it ends up polluting the logs with the same message while the loop times out. So let's just remove it. Closes-Bug: #1336591 Change-Id: Ia0cec5c699470554a25c077082878772158f4c5a
This commit is contained in:
parent
8520a48a10
commit
70ea1ca2ff
|
@ -621,7 +621,6 @@ def call_until_true(func, duration, sleep_for):
|
|||
while now < timeout:
|
||||
if func():
|
||||
return True
|
||||
LOG.debug("Sleeping for %d seconds", sleep_for)
|
||||
time.sleep(sleep_for)
|
||||
now = time.time()
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue