Commit b91140fd authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-11555: Enhance IocpProactor.close() log again (GH-11563)

Add repr(self) to the log to display the number of pending overlapped
in the log.
parent b1e45739
...@@ -811,9 +811,8 @@ class IocpProactor: ...@@ -811,9 +811,8 @@ class IocpProactor:
next_msg = start_time + msg_update next_msg = start_time + msg_update
while self._cache: while self._cache:
if next_msg <= time.monotonic(): if next_msg <= time.monotonic():
logger.debug('IocpProactor.close(): ' logger.debug('%r is running after closing for %.1f seconds',
'loop is running after closing for %.1f seconds', self, time.monotonic() - start_time)
time.monotonic() - start_time)
next_msg = time.monotonic() + msg_update next_msg = time.monotonic() + msg_update
# handle a few events, or timeout # handle a few events, or timeout
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment