[Pkg-bazaar-commits] ./bzr/unstable r360: - use cgitb to get more detailed traceback in the
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 07:43:44 UTC 2009
------------------------------------------------------------
revno: 360
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Thu 2005-05-05 16:21:22 +1000
message:
- use cgitb to get more detailed traceback in the
trace file
modified:
bzrlib/trace.py
-------------- next part --------------
=== modified file 'bzrlib/trace.py'
--- a/bzrlib/trace.py 2005-05-05 06:14:53 +0000
+++ b/bzrlib/trace.py 2005-05-05 06:21:22 +0000
@@ -136,10 +136,9 @@
def log_exception():
"""Log the last exception into the trace file."""
- import traceback, cStringIO
- s = cStringIO.StringIO()
- traceback.print_exc(None, s)
- for l in s.getvalue().split('\n'):
+ import cgitb
+ s = cgitb.text(sys.exc_info())
+ for l in s.split('\n'):
_write_trace(l)
More information about the Pkg-bazaar-commits
mailing list