/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-27 22:56:50 UTC
  • mto: (1685.1.1 bzr-encoding)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20051227225650-1560126e87a674bf
mutter() should not fail because of unicode errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
    else:
95
95
        out = fmt
96
96
    out += '\n'
97
 
    _trace_file.write(out)
 
97
    try:
 
98
        _trace_file.write(out)
 
99
    except UnicodeError, e:
 
100
        warning('UnicodeError: %s', e)
 
101
        _trace_file.write(repr(out))
 
102
    # TODO: jam 20051227 Consider flushing the trace file to help debugging
 
103
    #_trace_file.flush()
98
104
debug = mutter
99
105
 
100
106