~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-25 03:24:47 UTC
  • Revision ID: mbp@sourcefrog.net-20050325032447-aef4d334620f490a
- don't flush the debug log file so often

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    b = 'bzr: warning: ' + msg + '\n'
46
46
    sys.stderr.write(b)
47
47
    _tracefile.write(b)
48
 
    _tracefile.flush()
 
48
    #_tracefile.flush()
49
49
 
50
50
def mutter(msg):
51
51
    _tracefile.write(msg)
52
52
    _tracefile.write('\n')
53
 
    _tracefile.flush()
 
53
    # _tracefile.flush()
54
54
    if verbose:
55
55
        sys.stderr.write('- ' + msg + '\n')
56
56
 
60
60
    if not silent:
61
61
        sys.stderr.write(b)
62
62
    _tracefile.write(b)
63
 
    _tracefile.flush()
 
63
    # _tracefile.flush()
64
64
 
65
65
 
66
66
def log_error(msg):
67
67
    sys.stderr.write(msg)
68
68
    _tracefile.write(msg)
69
 
    _tracefile.flush()
 
69
    # _tracefile.flush()
70
70
 
71
71
 
72
72