~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2005-05-03 07:57:06 UTC
  • Revision ID: mbp@sourcefrog.net-20050503075706-8162f11e1c000c57
- allow trace file to grow up to 4MB

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 <= 1 << 20:
 
83
        if size <= 4 << 20:
84
84
            return
85
85
        old_fname = trace_fname + '.old'
86
86