3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

fix timestamp formatting

This commit is contained in:
Shivaram Lingamneni 2020-04-12 12:56:49 -04:00
parent 6a900ca0cb
commit ded03ee618

View File

@ -230,7 +230,7 @@ func (logger *singleLogger) Log(level Level, logType string, messageParts ...str
// assemble full line
var rawBuf bytes.Buffer
fmt.Fprintf(&rawBuf, "%s : %s : %s : ", time.Now().UTC().Format("2006-01-02T15:04:05Z"), LogLevelDisplayNames[level], logType)
fmt.Fprintf(&rawBuf, "%s : %s : %s : ", time.Now().UTC().Format("2006-01-02T15:04:05.000Z"), LogLevelDisplayNames[level], logType)
for i, p := range messageParts {
rawBuf.WriteString(p)