mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Closes #27904: Improved logging statements to defer formatting until needed.
This commit is contained in:
parent
ee47e5cf8a
commit
dd917f84e3
15 changed files with 25 additions and 26 deletions
|
@ -329,8 +329,7 @@ class Command:
|
|||
# -- External world manipulation -----------------------------------
|
||||
|
||||
def warn(self, msg):
|
||||
log.warn("warning: %s: %s\n" %
|
||||
(self.get_command_name(), msg))
|
||||
log.warn("warning: %s: %s\n", self.get_command_name(), msg)
|
||||
|
||||
def execute(self, func, args, msg=None, level=1):
|
||||
util.execute(func, args, msg, dry_run=self.dry_run)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue