~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 03:33:18 UTC
  • Revision ID: mbp@sourcefrog.net-20050415033318-737b5c6adf1e05f1
- Allow log files up to 1MB

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
def _rollover_trace_maybe(trace_fname):
81
81
    try:
82
82
        size = os.stat(trace_fname)[stat.ST_SIZE]
83
 
        if size <= 100000:
 
83
        if size <= 1 << 20:
84
84
            return
85
85
        old_fname = trace_fname + '.old'
86
86