[PATCH] enable logging of tracebacks to help with debugging
John Arbash Meinel
john at arbash-meinel.com
Tue Jul 11 20:20:32 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The current bzr.dev code swallows tracebacks. But this makes it murder
to track down bugs exposed by run_bzr in the test suite.
This re-enables logging the full traceback for any exception caught that
we cleanup.
=== modified file 'bzrlib/trace.py'
- --- bzrlib/trace.py 2006-06-29 16:24:56 +0000
+++ bzrlib/trace.py 2006-07-11 18:58:08 +0000
@@ -256,6 +256,7 @@
def report_exception(exc_info, err_file):
exc_type, exc_object, exc_tb = exc_info
+ log_exception_quietly()
if (isinstance(exc_object, IOError)
and getattr(exc_object, 'errno', None) == errno.EPIPE):
print >>err_file, "bzr: broken pipe"
I know Martin had some other cleanups, and I'm not sure how this
interacts. But it makes debugging run_bzr errors possible again.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEs/oAJdeBCYSNAAMRAnN4AJ9Hg1ZbRQ/CdIHtnMA0EPkiEKLNzQCggvV/
8L0w0PQuB+5QGHwHnFLatzI=
=Xox0
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list