Closes #27904: Improved logging statements to defer formatting until needed.

This commit is contained in:
Vinay Sajip 2016-08-31 08:22:29 +01:00
parent ee47e5cf8a
commit dd917f84e3
15 changed files with 25 additions and 26 deletions

View file

@ -337,7 +337,7 @@ def dump_file(filename, head=None):
If head is not None, will be dumped before the file content.
"""
if head is None:
log.info('%s' % filename)
log.info('%s', filename)
else:
log.info(head)
file = open(filename)