/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: Robert Collins
  • Date: 2006-03-03 02:09:49 UTC
  • mto: (1594.2.4 integration)
  • mto: This revision was merged to the branch mainline in revision 1596.
  • Revision ID: robertc@robertcollins.net-20060303020949-0ddc6f33d0a43943
Smoke test for RevisionStore factories creating revision stores.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 
79
79
_bzr_logger = logging.getLogger('bzr')
80
80
 
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
 
81
info = note = _bzr_logger.info
 
82
warning =   _bzr_logger.warning
92
83
log_error = _bzr_logger.error
93
84
error =     _bzr_logger.error
94
85
 
247
238
 
248
239
def disable_test_log((test_log_hdlr, old_trace_file)):
249
240
    _bzr_logger.removeHandler(test_log_hdlr)
250
 
    test_log_hdlr.close()
251
241
    _trace_file = old_trace_file
252
242
    enable_default_logging()
253
243