~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

Set logger level depending on BZR_DEBUG to reduce work

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
# configure convenient aliases for output routines
86
86
 
87
87
_bzr_logger = logging.getLogger('bzr')
88
 
_bzr_logger.setLevel(logging.DEBUG) 
89
88
 
90
89
info = note = _bzr_logger.info
91
90
warning =   _bzr_logger.warning
203
202
 
204
203
    _stderr_handler.setLevel(logging.INFO)
205
204
    _file_handler.setLevel(level)
 
205
    _bzr_logger.setLevel(level) 
206
206
 
207
207
    logging.getLogger('').addHandler(_stderr_handler)
208
208