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