commit 52b9014cb80d01e907eb8cd986c5fdbe983686be Author: David Fifield david@bamsoftware.com Date: Sat Aug 2 11:28:22 2014 -0700
Actually use the specified log file name.
meek-client-torbrowser was always logging to meek-client-torbrowser.log whenever the --log option was used, whatever the argument was. --- meek-client-torbrowser/meek-client-torbrowser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meek-client-torbrowser/meek-client-torbrowser.go b/meek-client-torbrowser/meek-client-torbrowser.go index 21ef4d9..cd23172 100644 --- a/meek-client-torbrowser/meek-client-torbrowser.go +++ b/meek-client-torbrowser/meek-client-torbrowser.go @@ -147,7 +147,7 @@ func main() { flag.Parse()
if logFilename != "" { - f, err := os.OpenFile("meek-client-torbrowser.log", os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600) + f, err := os.OpenFile(logFilename, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600) if err != nil { log.Fatal(err) }