[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake/master] Have proxy-go log in UTC.



commit bfea72b50e9277be0abae1b696431c28faef681c
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Thu Jun 29 16:44:17 2017 -0700

    Have proxy-go log in UTC.
---
 proxy-go/snowflake.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxy-go/snowflake.go b/proxy-go/snowflake.go
index 1b7d593..d25a491 100644
--- a/proxy-go/snowflake.go
+++ b/proxy-go/snowflake.go
@@ -305,6 +305,7 @@ func main() {
 	flag.StringVar(&logFilename, "log", "", "log filename")
 	flag.Parse()
 
+	log.SetFlags(log.LstdFlags | log.LUTC)
 	if logFilename != "" {
 		f, err := os.OpenFile(logFilename, os.O_CREATE | os.O_WRONLY | os.O_APPEND, 0600)
 		if err != nil {

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits