~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2009-03-13 07:46:26 UTC
  • mto: This revision was merged to the branch mainline in revision 4189.
  • Revision ID: mbp@sourcefrog.net-20090313074626-i3ycz4wubq6nbiuw
Remove APIs deprecated up to and including 1.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
329
329
    new_trace_file.flush()
330
330
 
331
331
 
332
 
@symbol_versioning.deprecated_function(symbol_versioning.one_two)
333
 
def enable_test_log(to_file):
334
 
    """Redirect logging to a temporary file for a test
335
 
    
336
 
    :returns: an opaque reference that should be passed to disable_test_log
337
 
    after the test completes.
338
 
    """
339
 
    return push_log_file(to_file)
340
 
 
341
 
 
342
 
@symbol_versioning.deprecated_function(symbol_versioning.one_two)
343
 
def disable_test_log(memento):
344
 
    return pop_log_file(memento)
345
 
 
346
 
 
347
332
def log_exception_quietly():
348
333
    """Log the last exception to the trace file only.
349
334
 
398
383
    return _verbosity_level > 0
399
384
 
400
385
 
401
 
@symbol_versioning.deprecated_function(symbol_versioning.one_two)
402
 
def disable_default_logging():
403
 
    """Turn off default log handlers.
404
 
 
405
 
    Don't call this method, use _push_log_file and _pop_log_file instead.
406
 
    """
407
 
    pass
408
 
 
409
 
 
410
386
_short_fields = ('VmPeak', 'VmSize', 'VmRSS')
411
387
 
412
388
def debug_memory(message='', short=True):