I gave this patch over IRC to workaround the problem:
=== modified file 'bzr' --- bzr 2007-07-10 01:37:27 +0000 +++ bzr 2007-07-29 11:08:17 +0000 @@ -95,6 +95,7 @@ % (bzrlib.__path__, bzrlib.version_info))
if __name__ == '__main__': + bzrlib.trace.open_tracefile(tracefilename='/var/log/bzr/trace.log') bzrlib.trace.enable_default_logging() exit_val = bzrlib.commands.main(sys.argv)
=== modified file 'bzrlib/trace.py' --- bzrlib/trace.py 2007-07-02 04:48:41 +0000 +++ bzrlib/trace.py 2007-07-29 11:10:44 +0000 @@ -152,6 +152,8 @@ else: home = os.path.expanduser('~') _bzr_log_filename = os.path.join(home, '.bzr.log') + else: + _bzr_log_filename = tracefilename
_bzr_log_filename = os.path.expanduser(_bzr_log_filename) _rollover_trace_maybe(_bzr_log_filename)
Probably what's needed is a command-line way to set the trace file explicitly.
I gave this patch over IRC to workaround the problem:
=== modified file 'bzr' version_ info))
--- bzr 2007-07-10 01:37:27 +0000
+++ bzr 2007-07-29 11:08:17 +0000
@@ -95,6 +95,7 @@
% (bzrlib.__path__, bzrlib.
if __name__ == '__main__': trace.open_ tracefile( tracefilename= '/var/log/ bzr/trace. log') trace.enable_ default_ logging( ) commands. main(sys. argv)
+ bzrlib.
bzrlib.
exit_val = bzrlib.
=== modified file 'bzrlib/trace.py' expanduser( '~')
_bzr_ log_filename = os.path.join(home, '.bzr.log')
--- bzrlib/trace.py 2007-07-02 04:48:41 +0000
+++ bzrlib/trace.py 2007-07-29 11:10:44 +0000
@@ -152,6 +152,8 @@
else:
home = os.path.
+ else:
+ _bzr_log_filename = tracefilename
_bzr_ log_filename = os.path. expanduser( _bzr_log_ filename) trace_maybe( _bzr_log_ filename)
_rollover_
Probably what's needed is a command-line way to set the trace file explicitly.