diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-08-31 08:22:29 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-08-31 08:22:29 +0100 |
commit | 6fae08cd104afd15190d836823a0dab7b228d0e6 (patch) | |
tree | d4e27693647b1440249f1aa236c63caa72bffdac /Lib/asyncio | |
parent | 68bb0ff567486a6312757fc5cc4cbe624a854673 (diff) | |
download | cpython-6fae08cd104afd15190d836823a0dab7b228d0e6.tar.gz |
Closes #27904: Improved logging statements to defer formatting until needed.
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/base_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 0916da8b0a..918b869526 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -1069,7 +1069,7 @@ class BaseEventLoop(events.AbstractEventLoop): transport = yield from self._make_subprocess_transport( protocol, cmd, True, stdin, stdout, stderr, bufsize, **kwargs) if self._debug: - logger.info('%s: %r' % (debug_log, transport)) + logger.info('%s: %r', debug_log, transport) return transport, protocol @coroutine @@ -1099,7 +1099,7 @@ class BaseEventLoop(events.AbstractEventLoop): protocol, popen_args, False, stdin, stdout, stderr, bufsize, **kwargs) if self._debug: - logger.info('%s: %r' % (debug_log, transport)) + logger.info('%s: %r', debug_log, transport) return transport, protocol def get_exception_handler(self): |