domain: Only log once about waiting for qemu agent for set_time

Rather than one every wait period, which spams the debug logs

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-01-14 14:21:30 -05:00
parent b7a223030b
commit af3d678bdd

View File

@ -243,7 +243,8 @@ class _vmmDomainSetTimeThread(vmmGObject):
# for it to come online now.
waited = 0
while waited < self._maxwait and not self._domain.agent_ready():
log.debug("Waiting for qemu guest agent to come online...")
if waited == 0:
log.debug("Waiting for qemu guest agent to come online...")
# sleep some time and potentially abort
if self._do_cancel.wait(self._sleep):