Log the replication wait timeout for debugging purposes

Related: https://pagure.io/freeipa/issue/7971
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Rob Crittenden 2019-07-05 14:14:53 -04:00 committed by Florence Blanc-Renaud
parent faf34fcdfd
commit 54035982e5

View File

@ -186,7 +186,8 @@ def wait_for_entry(connection, dn, timeout, attr=None, attrvalue='*',
attrlist.append(attr)
else:
filterstr = "(objectclass=*)"
log("Waiting for replication (%s) %s %s", connection, dn, filterstr)
log("Waiting up to %s seconds for replication (%s) %s %s",
connection, dn, filterstr)
entry = []
deadline = time.time() + timeout
for i in itertools.count(start=1):