summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-08-08 17:28:53 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-08-08 17:28:53 (GMT)
commit3f58277382f3e337d225da547bdb26bc555570a4 (patch)
treee5314f303291e2230eb5bc06bb14eeec580cc4f9 /Lib
parentd119b7beba603be9945fabf3a30f98c3fcff1782 (diff)
downloadcpython-3f58277382f3e337d225da547bdb26bc555570a4.zip
cpython-3f58277382f3e337d225da547bdb26bc555570a4.tar.gz
cpython-3f58277382f3e337d225da547bdb26bc555570a4.tar.bz2
Closes #18671: Output more information when logging exceptions occur.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/logging/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 4629860..3ecce73 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -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: