[tor-commits] [snowflake/master] Enable proxy-go to create its log file.

dcf at torproject.org dcf at torproject.org
Thu Jun 29 23:17:47 UTC 2017


commit c2c1a9d09d03cfff2cdea6646f08f519da9055a6
Author: David Fifield <david at bamsoftware.com>
Date:   Thu Jun 29 16:09:25 2017 -0700

    Enable proxy-go to create its log file.
---
 proxy-go/snowflake.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy-go/snowflake.go b/proxy-go/snowflake.go
index 27c4ab9..801be6e 100644
--- a/proxy-go/snowflake.go
+++ b/proxy-go/snowflake.go
@@ -302,7 +302,7 @@ func main() {
 	flag.Parse()
 
 	if logFilename != "" {
-		f, err := os.OpenFile(logFilename, os.O_WRONLY | os.O_APPEND, 0600)
+		f, err := os.OpenFile(logFilename, os.O_CREATE | os.O_WRONLY | os.O_APPEND, 0600)
 		if err != nil {
 			log.Fatal(err)
 		}





More information about the tor-commits mailing list