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.
This commit is contained in:
Victor Stinner 2019-01-15 12:13:48 +01:00 committed by GitHub
parent b1e45739d8
commit b91140fdb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -811,9 +811,8 @@ class IocpProactor:
next_msg = start_time + msg_update
while self._cache:
if next_msg <= time.monotonic():
logger.debug('IocpProactor.close(): '
'loop is running after closing for %.1f seconds',
time.monotonic() - start_time)
logger.debug('%r is running after closing for %.1f seconds',
self, time.monotonic() - start_time)
next_msg = time.monotonic() + msg_update
# handle a few events, or timeout