123
127
_bzr_logger.warning(*args, **kwargs)
126
# configure convenient aliases for output routines
128
# TODO: deprecate them, have one name for each.
130
log_error = _bzr_logger.error
131
error = _bzr_logger.error
130
@deprecated_function(deprecated_in((2, 1, 0)))
131
def info(*args, **kwargs):
132
"""Deprecated: use trace.note instead."""
133
note(*args, **kwargs)
136
@deprecated_function(deprecated_in((2, 1, 0)))
137
def log_error(*args, **kwargs):
138
"""Deprecated: use bzrlib.trace.show_error instead"""
139
_bzr_logger.error(*args, **kwargs)
142
@deprecated_function(deprecated_in((2, 1, 0)))
143
def error(*args, **kwargs):
144
"""Deprecated: use bzrlib.trace.show_error instead"""
145
_bzr_logger.error(*args, **kwargs)
149
"""Show an error message to the user.
151
Don't use this for exceptions, use report_exception instead.
153
_bzr_logger.error(*args, **kwargs)
134
156
_last_mutter_flush_time = None
136
159
def mutter(fmt, *args):
137
160
global _last_mutter_flush_time
138
161
if _trace_file is None:
432
455
elif isinstance(exc_object, KeyboardInterrupt):
433
456
err_file.write("bzr: interrupted\n")
434
457
return errors.EXIT_ERROR
458
elif isinstance(exc_object, MemoryError):
459
err_file.write("bzr: out of memory\n")
460
return errors.EXIT_ERROR
435
461
elif isinstance(exc_object, ImportError) \
436
462
and str(exc_object).startswith("No module named "):
437
463
report_user_error(exc_info, err_file,