[Pkg-bazaar-commits] ./bzr/unstable r269: - Put proper prefix at start of exceptions in trace file
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 07:43:54 UTC 2009
------------------------------------------------------------
revno: 269
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-04-15 13:32:32 +1000
message:
- Put proper prefix at start of exceptions in trace file
modified:
bzrlib/trace.py
-------------- next part --------------
=== modified file 'bzrlib/trace.py'
--- a/bzrlib/trace.py 2005-04-15 02:55:00 +0000
+++ b/bzrlib/trace.py 2005-04-15 03:32:32 +0000
@@ -144,6 +144,10 @@
def log_exception(e):
- import traceback
- traceback.print_exc(None, _tracefile)
+ import traceback, cStringIO
+ s = cStringIO.StringIO()
+ traceback.print_exc(None, s)
+ for l in s.getvalue().split('\n'):
+ _write_trace(l)
+
More information about the Pkg-bazaar-commits
mailing list