~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Aaron Bentley
  • Date: 2006-03-18 21:02:22 UTC
  • mto: (1558.7.5 Aaron's integration)
  • mto: This revision was merged to the branch mainline in revision 1629.
  • Revision ID: aaron.bentley@utoronto.ca-20060318210222-8a49d67ada6f8638
Fix overall progress bar's interaction with 'note' and 'warning'

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