Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3f582773
Commit
3f582773
authored
Aug 08, 2013
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #18671: Output more information when logging exceptions occur.
parent
d119b7be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Lib/logging/__init__.py
Lib/logging/__init__.py
+3
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/logging/__init__.py
View file @
3f582773
...
...
@@ -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
:
...
...
Misc/NEWS
View file @
3f582773
...
...
@@ -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
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment