3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 10:42:52 +01:00

align up to 10

This commit is contained in:
Shivaram Lingamneni 2020-04-12 13:45:24 -04:00
parent dbbcd800c9
commit 11d1d96d71

View File

@ -229,7 +229,7 @@ func (logger *singleLogger) Log(level Level, logType string, messageParts ...str
var rawBuf bytes.Buffer
// XXX magic number here: 9 is len("listeners"), the longest log category name
// in current use. it's not a big deal if this number gets out of date.
fmt.Fprintf(&rawBuf, "%s : %-5s : %-9s : ", time.Now().UTC().Format("2006-01-02T15:04:05.000Z"), LogLevelDisplayNames[level], logType)
fmt.Fprintf(&rawBuf, "%s : %-5s : %-10s : ", time.Now().UTC().Format("2006-01-02T15:04:05.000Z"), LogLevelDisplayNames[level], logType)
for i, p := range messageParts {
rawBuf.WriteString(p)