246
246
# Do this before we open the log file, so we prevent
247
247
# get_terminal_encoding() from mutter()ing multiple times
248
248
term_encoding = osutils.get_terminal_encoding()
251
251
# create encoded wrapper around stderr
252
252
bzr_log_file = _open_bzr_log()
254
254
push_log_file(bzr_log_file,
255
255
r'[%(process)5d] %(asctime)s.%(msecs)03d %(levelname)s: %(message)s',