~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2005-08-25 08:19:55 UTC
  • Revision ID: mbp@sourcefrog.net-20050825081955-d7295021dcfcd2ba
- disable standard logging to .bzr.log and stderr while running 
  tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
    This is intended to be used by the test framework, which doesn't
205
205
    want leakage from the code-under-test into the main logs.
206
206
    """
207
 
    
 
207
 
 
208
    l = logging.getLogger('')
 
209
    l.removeHandler(_stderr_handler)
 
210
    if _file_handler:
 
211
        l.removeHandler(_file_handler)