Comment 3 for bug 129030

Revision history for this message
Andrew Bennetts (spiv) wrote :

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.