mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Make client and server-webrtc log in UTC.
This commit is contained in:
parent
0ccb4b7cc8
commit
86a244c39e
2 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue