241
241
_bzr_log_filename = _get_bzr_log_filename()
242
242
_rollover_trace_maybe(_bzr_log_filename)
246
bzr_log_file = osutils.open(_bzr_log_filename, 'at', buffering, ownership_src)
245
247
# bzr_log_file.tell() on windows always return 0 until some writing done
247
249
if bzr_log_file.tell() <= 2:
248
250
bzr_log_file.write("this is a debug log for diagnosing/reporting problems in bzr\n")
249
251
bzr_log_file.write("you can delete or truncate this file, or include sections in\n")
250
252
bzr_log_file.write("bug reports to https://bugs.launchpad.net/bzr/+filebug\n\n")
253
257
# If we are failing to open the log, then most likely logging has not
254
258
# been set up yet. So we just write to stderr rather than using