Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d119b7b commit 3f58277Copy full SHA for 3f58277
2 files changed
Lib/logging/__init__.py
@@ -899,6 +899,9 @@ def handleError(self, record):
899
# couldn't find the right stack frame, for some reason
900
sys.stderr.write('Logged from file %s, line %s\n' % (
901
record.filename, record.lineno))
902
+ # Issue 18671: output logging message and arguments
903
+ sys.stderr.write('Message: %r\n'
904
+ 'Arguments: %s\n' % (record.msg, record.args))
905
except OSError: #pragma: no cover
906
pass # see issue 5971
907
finally:
Misc/NEWS
@@ -22,6 +22,8 @@ Core and Builtins
22
Library
23
-------
24
25
+- Issue #18671: Output more information when logging exceptions occur.
26
+
27
- Issue #18621: Prevent the site module's patched builtins from keeping
28
too many references alive for too long.
29
0 commit comments