From ded03ee618bcec8492b1d6f693aabc7542c5b680 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 12 Apr 2020 12:56:49 -0400 Subject: [PATCH] fix timestamp formatting --- irc/logger/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/logger/logger.go b/irc/logger/logger.go index 5840b880..c777a478 100644 --- a/irc/logger/logger.go +++ b/irc/logger/logger.go @@ -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)