mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Closes #18671: Output more information when logging exceptions occur.
This commit is contained in:
parent
d119b7beba
commit
3f58277382
2 changed files with 5 additions and 0 deletions
|
|
@ -899,6 +899,9 @@ class Handler(Filterer):
|
|||
# couldn't find the right stack frame, for some reason
|
||||
sys.stderr.write('Logged from file %s, line %s\n' % (
|
||||
record.filename, record.lineno))
|
||||
# Issue 18671: output logging message and arguments
|
||||
sys.stderr.write('Message: %r\n'
|
||||
'Arguments: %s\n' % (record.msg, record.args))
|
||||
except OSError: #pragma: no cover
|
||||
pass # see issue 5971
|
||||
finally:
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #18671: Output more information when logging exceptions occur.
|
||||
|
||||
- Issue #18621: Prevent the site module's patched builtins from keeping
|
||||
too many references alive for too long.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue