mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
More apply() cleanup
This commit is contained in:
parent
ade612be2f
commit
7c3072437a
2 changed files with 9 additions and 12 deletions
|
@ -1015,7 +1015,7 @@ class Logger(Filterer):
|
|||
"""
|
||||
Convenience method for logging an ERROR with exception information.
|
||||
"""
|
||||
self.error(msg, *args, exc_info=1)
|
||||
self.error(msg, exc_info=1, *args)
|
||||
|
||||
def critical(self, msg, *args, **kwargs):
|
||||
"""
|
||||
|
@ -1292,7 +1292,7 @@ def exception(msg, *args):
|
|||
Log a message with severity 'ERROR' on the root logger,
|
||||
with exception information.
|
||||
"""
|
||||
error(msg, *args, exc_info=1)
|
||||
error(msg, exc_info=1, *args)
|
||||
|
||||
def warning(msg, *args, **kwargs):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue