diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-08-31 07:22:29 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-08-31 07:22:29 (GMT) |
commit | dd917f84e3775596049e09746f32053c50b3d422 (patch) | |
tree | 5b59a563c228493069bcf00e166fba7cea8ebfef /Doc/whatsnew | |
parent | ee47e5cf8ad0e52e2c5291662b9b15c2ba8848ea (diff) | |
download | cpython-dd917f84e3775596049e09746f32053c50b3d422.zip cpython-dd917f84e3775596049e09746f32053c50b3d422.tar.gz cpython-dd917f84e3775596049e09746f32053c50b3d422.tar.bz2 |
Closes #27904: Improved logging statements to defer formatting until needed.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.2.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 9f3584d..3d237ea 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -1253,9 +1253,9 @@ definition:: @contextmanager def track_entry_and_exit(name): - logging.info('Entering: {}'.format(name)) + logging.info('Entering: %s', name) yield - logging.info('Exiting: {}'.format(name)) + logging.info('Exiting: %s', name) Formerly, this would have only been usable as a context manager:: |