Skip to content

Commit

Permalink
change log timestamp to UTC (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Honglei-Cong committed Dec 30, 2019
1 parent 28aaeb1 commit 7d640f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func InitLog(logLevel int, a ...interface{}) {
}
}
fileAndStdoutWrite := io.MultiWriter(writers...)
Log = New(fileAndStdoutWrite, "", log.Ldate|log.Lmicroseconds, logLevel, logFile)
Log = New(fileAndStdoutWrite, "", log.LUTC|log.Ldate|log.Lmicroseconds, logLevel, logFile)
}

func GetLogFileSize() (int64, error) {
Expand Down

0 comments on commit 7d640f4

Please sign in to comment.