~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2005-08-24 01:23:44 UTC
  • Revision ID: mbp@sourcefrog.net-20050824012344-49b00b8559d47df5
- fix name error reported by Andrew Bennetts

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
        tf = codecs.open(trace_fname, 'at', 'utf8', buffering=1)
141
141
 
142
142
        if os.fstat(tf.fileno())[stat.ST_SIZE] == 0:
143
 
            t.write("\nthis is a debug log for diagnosing/reporting problems in bzr\n")
144
 
            t.write("you can delete or truncate this file, or include sections in\n")
145
 
            t.write("bug reports to bazaar-ng@lists.canonical.com\n\n")
 
143
            tf.write("\nthis is a debug log for diagnosing/reporting problems in bzr\n")
 
144
            tf.write("you can delete or truncate this file, or include sections in\n")
 
145
            tf.write("bug reports to bazaar-ng@lists.canonical.com\n\n")
146
146
        
147
147
        _file_handler = logging.StreamHandler(tf)
148
148
        fmt = r'[%(process)5d] %(asctime)s.%(msecs)03d %(levelname)s: %(message)s'