diff options
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/__init__.py | 3 |
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: |