Package: unison
Version: 2.27.57-1
Severity: wishlist
Tags: patch
Currently unison places its logfile in the home directory. It would be better (and nicer) if unison, by default, could place its logfile in .unison dir.
I have attached a patch (in dpatch format) to address this 'wishlist'
This wishlist could also be found at Ubuntu launchpad [0]
[0]: https://bugs.launchpad.net/bugs/234365
Cheers
Rui Boon
#! /bin/sh /usr/share/dpatch/dpatch-run
## change-logfile-location.dpatch by Tan Rui Boon <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Change logfile location
## DP: by prepending .unison to name of logfile in ubase/trace.ml
@DPATCH@
diff -urNad unison-2.27.57~/ubase/trace.ml unison-2.27.57/ubase/trace.ml
--- unison-2.27.57~/ubase/trace.ml 2007-04-02 11:03:20.000000000 +0800
+++ unison-2.27.57/ubase/trace.ml 2008-06-02 14:24:54.000000000 +0800
@@ -98,10 +98,10 @@
let logfile =
Prefs.createString "logfile"
- (Util.fileInHomeDir "unison.log")
+ (Util.fileInHomeDir ".unison/unison.log")
"Log file name"
"By default, logging messages will be appended to the file
- \\verb|unison.log| in your HOME directory. Set this preference if
+ \\verb|unison.log| in your .unison directory. Set this preference if
you prefer another file."
let logch = ref None