Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b91140f

Browse files
authored
bpo-11555: Enhance IocpProactor.close() log again (pythonGH-11563)
Add repr(self) to the log to display the number of pending overlapped in the log.
1 parent b1e4573 commit b91140f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/asyncio/windows_events.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,8 @@ def close(self):
811811
next_msg = start_time + msg_update
812812
while self._cache:
813813
if next_msg <= time.monotonic():
814-
logger.debug('IocpProactor.close(): '
815-
'loop is running after closing for %.1f seconds',
816-
time.monotonic() - start_time)
814+
logger.debug('%r is running after closing for %.1f seconds',
815+
self, time.monotonic() - start_time)
817816
next_msg = time.monotonic() + msg_update
818817

819818
# handle a few events, or timeout

0 commit comments

Comments
 (0)