add debug message to new multicall to match original

Fixes https://pagure.io/koji/issue/1514
This commit is contained in:
Mike McLean 2019-06-27 10:30:17 -04:00
parent fac81bd7be
commit 0b92bd3d44

View file

@ -2970,6 +2970,9 @@ class MultiCallSession(object):
calls = self._calls
self._calls = []
if batch:
self._session.logger.debug(
"MultiCall with batch size %i, calls/groups(%i/%i)",
batch, len(calls), round(len(calls) // batch))
batches = [calls[i:i+batch] for i in range(0, len(calls), batch)]
else:
batches = [calls]