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

[tor-commits] [snowflake/master] Make client and server-webrtc log in UTC.



commit 86a244c39ea7937342239d9c2a003926685cb199
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Sun Jul 16 14:58:34 2017 -0700

    Make client and server-webrtc log in UTC.
---
 client/snowflake.go        | 1 +
 server-webrtc/snowflake.go | 1 +
 2 files changed, 2 insertions(+)

diff --git a/client/snowflake.go b/client/snowflake.go
index d85505e..764efb3 100644
--- a/client/snowflake.go
+++ b/client/snowflake.go
@@ -131,6 +131,7 @@ func main() {
 	flag.Parse()
 
 	webrtc.SetLoggingVerbosity(1)
+	log.SetFlags(log.LstdFlags | log.LUTC)
 	if *logFilename != "" {
 		logFile, err := os.OpenFile(*logFilename,
 			os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600)
diff --git a/server-webrtc/snowflake.go b/server-webrtc/snowflake.go
index 9a9c7dc..b74dcbd 100644
--- a/server-webrtc/snowflake.go
+++ b/server-webrtc/snowflake.go
@@ -223,6 +223,7 @@ func main() {
 	flag.StringVar(&httpAddr, "http", "", "listen for HTTP signaling")
 	flag.Parse()
 
+	log.SetFlags(log.LstdFlags | log.LUTC)
 	logFile, err = os.OpenFile("snowflake.log", os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600)
 	if err != nil {
 		log.Fatal(err)



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