mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Improved logging.Formatter date/time formatting documentation.
This commit is contained in:
parent
33a299428d
commit
40d9a4e854
2 changed files with 13 additions and 1 deletions
|
@ -433,7 +433,11 @@ class Formatter(object):
|
|||
traceback.print_exception()
|
||||
"""
|
||||
sio = io.StringIO()
|
||||
traceback.print_exception(ei[0], ei[1], ei[2], None, sio)
|
||||
tb = ei[2]
|
||||
# See issues #9427, #1553375. Commented out for now.
|
||||
#if getattr(self, 'fullstack', False):
|
||||
# traceback.print_stack(tb.tb_frame.f_back, file=sio)
|
||||
traceback.print_exception(ei[0], ei[1], tb, None, sio)
|
||||
s = sio.getvalue()
|
||||
sio.close()
|
||||
if s[-1:] == "\n":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue