~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

Fixed garbage in progress/warning interactions

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 
79
79
_bzr_logger = logging.getLogger('bzr')
80
80
 
81
 
info = note = _bzr_logger.info
82
 
warning =   _bzr_logger.warning
 
81
def note(*args, **kwargs):
 
82
    import bzrlib.ui
 
83
    bzrlib.ui.ui_factory.clear_term()
 
84
    _bzr_logger.info(*args, **kwargs)
 
85
 
 
86
def warning(*args, **kwargs):
 
87
    import bzrlib.ui
 
88
    bzrlib.ui.ui_factory.clear_term()
 
89
    _bzr_logger.warning(*args, **kwargs)
 
90
 
 
91
info = note
83
92
log_error = _bzr_logger.error
84
93
error =     _bzr_logger.error
85
94