/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2008-01-22 05:34:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3219.
  • Revision ID: mbp@sourcefrog.net-20080122053400-2wbr56mi9byq9mez
Deprecate disable_default_logging and add 1.2 deprecation marker

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007, 2008 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
73
73
    errors,
74
74
    osutils,
75
75
    plugin,
 
76
    symbol_versioning,
76
77
    )
77
78
""")
78
79
 
298
299
    return _verbosity_level > 0
299
300
 
300
301
 
 
302
@symbol_versioning.deprecated_function(symbol_versioning.zero_two)
301
303
def disable_default_logging():
302
304
    """Turn off default log handlers.
303
305
 
304
 
    This is intended to be used by the test framework, which doesn't
305
 
    want leakage from the code-under-test into the main logs.
 
306
    Don't call this method, use _push_log_file and _pop_log_file instead.
306
307
    """
307
308
    l = logging.getLogger('')
308
309
    l.removeHandler(_stderr_handler)