/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: Martin Pool
  • Date: 2009-11-30 06:09:26 UTC
  • mto: This revision was merged to the branch mainline in revision 4845.
  • Revision ID: mbp@sourcefrog.net-20091130060926-3e26u3qtibr1nolj
bzr trace file now unbuffered

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
    _bzr_log_filename = _get_bzr_log_filename()
242
242
    _rollover_trace_maybe(_bzr_log_filename)
243
243
    try:
244
 
        bzr_log_file = open(_bzr_log_filename, 'at', 1) # line buffered
 
244
        bzr_log_file = open(_bzr_log_filename, 'at', buffering=0) # unbuffered
245
245
        # bzr_log_file.tell() on windows always return 0 until some writing done
246
246
        bzr_log_file.write('\n')
247
247
        if bzr_log_file.tell() <= 2: