]> granicus.if.org Git - python/commitdiff
bpo-11555: Enhance IocpProactor.close() log again (GH-11563)
authorVictor Stinner <vstinner@redhat.com>
Tue, 15 Jan 2019 11:13:48 +0000 (12:13 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Jan 2019 11:13:48 +0000 (12:13 +0100)
Add repr(self) to the log to display the number of pending overlapped
in the log.

Lib/asyncio/windows_events.py

index 7f264e6f9a07a3a4c0e65daaa8e46a97ba862187..29750f18d80c46e4ac84a800c63320b9605f52ad 100644 (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