diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2010-08-30 18:10:03 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2010-08-30 18:10:03 (GMT) |
commit | 40d9a4e854d71a9c307f4f92a1e8336b4714a3c8 (patch) | |
tree | 2cf02f928069152d69840bfc7a70c3f450daf03f /Lib | |
parent | 33a299428d1adc12b57d2ba0ee89c9393f08834a (diff) | |
download | cpython-40d9a4e854d71a9c307f4f92a1e8336b4714a3c8.zip cpython-40d9a4e854d71a9c307f4f92a1e8336b4714a3c8.tar.gz cpython-40d9a4e854d71a9c307f4f92a1e8336b4714a3c8.tar.bz2 |
Improved logging.Formatter date/time formatting documentation.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/logging/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index b4eaab6..afb4004 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -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": |