~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-23 06:39:46 UTC
  • mfrom: (2034 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2035.
  • Revision ID: john@arbash-meinel.com-20060923063946-e596c8a8eef928b4
[merge] bzr.dev 2034

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
import errno
55
55
import os
56
56
import sys
 
57
import re
57
58
import logging
58
59
 
59
60
import bzrlib
168
169
    """
169
170
    if msg:
170
171
        error(msg)
171
 
    else:
172
 
        exc_str = format_exception_short(sys.exc_info())
173
 
        error(exc_str)
174
172
    log_exception_quietly()
175
173
 
176
174
 
288
286
    """Report an exception that probably indicates a bug in bzr"""
289
287
    import traceback
290
288
    exc_type, exc_object, exc_tb = exc_info
291
 
    print >>err_file, "bzr: ERROR: %s: %s" % (exc_type, exc_object)
 
289
    print >>err_file, "bzr: ERROR: %s.%s: %s" % (
 
290
        exc_type.__module__, exc_type.__name__, exc_object)
292
291
    print >>err_file
293
292
    traceback.print_exception(exc_type, exc_object, exc_tb, file=err_file)
294
293
    print >>err_file