~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2005-04-15 02:55:00 UTC
  • Revision ID: mbp@sourcefrog.net-20050415025500-0d789f868f19cdbb
factor out code to log exceptions

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
 
144
144
 
145
145
 
 
146
def log_exception(e):
 
147
    import traceback
 
148
    traceback.print_exc(None, _tracefile)
 
149