summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/windows_events.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-01-15 11:13:48 (GMT)
committerGitHub <noreply@github.com>2019-01-15 11:13:48 (GMT)
commitb91140fdb17472d03a7b7971f143c08a40fde923 (patch)
tree7bababd1575edd4fc41f63399d9e98db78197158 /Lib/asyncio/windows_events.py
parentb1e45739d832e1e402a563c6727defda92e193b7 (diff)
downloadcpython-b91140fdb17472d03a7b7971f143c08a40fde923.zip
cpython-b91140fdb17472d03a7b7971f143c08a40fde923.tar.gz
cpython-b91140fdb17472d03a7b7971f143c08a40fde923.tar.bz2
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.
Diffstat (limited to 'Lib/asyncio/windows_events.py')
-rw-r--r--Lib/asyncio/windows_events.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py
index 7f264e6..29750f1 100644
--- a/Lib/asyncio/windows_events.py
+++ b/Lib/asyncio/windows_events.py
@@ -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