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 authored and laizy committed Dec 25, 2019
1 parent 89ecfb3 commit 15ca781
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 @@ -364,7 +364,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 15ca781

Please sign in to comment.