~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-12 02:49:48 UTC
  • mto: (1946.2.6 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1855.
  • Revision ID: john@arbash-meinel.com-20060712024948-162ebe6b4b9985bf
Restore logging of full traceback. Helps with debugging tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
 
257
257
def report_exception(exc_info, err_file):
258
258
    exc_type, exc_object, exc_tb = exc_info
 
259
    # Log the full traceback to ~/.bzr.log
 
260
    log_exception_quietly()
259
261
    if (isinstance(exc_object, IOError)
260
262
        and getattr(exc_object, 'errno', None) == errno.EPIPE):
261
263
        print >>err_file, "bzr: broken pipe"