[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Enable proxy-go to create its log file.
commit c2c1a9d09d03cfff2cdea6646f08f519da9055a6
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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)
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits