Rev 3807: Switch so that we are using a simple timestamp as the first action. in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Thu Oct 30 00:55:12 GMT 2008
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 3807
revision-id: john at arbash-meinel.com-20081030005500-r5cej1cxflqhs3io
parent: john at arbash-meinel.com-20081030004355-k1kej1kdzcdo0360
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Wed 2008-10-29 19:55:00 -0500
message:
Switch so that we are using a simple timestamp as the first action.
-------------- next part --------------
=== modified file 'bzrlib/trace.py'
--- a/bzrlib/trace.py 2008-10-30 00:43:55 +0000
+++ b/bzrlib/trace.py 2008-10-30 00:55:00 +0000
@@ -246,12 +246,14 @@
# Do this before we open the log file, so we prevent
# get_terminal_encoding() from mutter()ing multiple times
term_encoding = osutils.get_terminal_encoding()
+ start_time = time.strftime('%Y-%m-%d %H:%M:%S\n',
+ time.localtime(_bzr_log_start_time))
# create encoded wrapper around stderr
bzr_log_file = _open_bzr_log()
+ bzr_log_file.write(start_time)
push_log_file(bzr_log_file,
r'[%(process)5d] %(asctime)s.%(msecs)03d %(levelname)s: %(message)s',
r'%Y-%m-%d %H:%M:%S')
- mutter('enabling logging: %s', time.asctime())
# after hooking output into bzr_log, we also need to attach a stderr
# handler, writing only at level info and with encoding
writer_factory = codecs.getwriter(term_encoding)
More information about the bazaar-commits
mailing list