mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-26 05:49:25 +01:00
align up to 10
This commit is contained in:
parent
dbbcd800c9
commit
11d1d96d71
@ -229,7 +229,7 @@ func (logger *singleLogger) Log(level Level, logType string, messageParts ...str
|
|||||||
var rawBuf bytes.Buffer
|
var rawBuf bytes.Buffer
|
||||||
// XXX magic number here: 9 is len("listeners"), the longest log category name
|
// 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.
|
// 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 {
|
for i, p := range messageParts {
|
||||||
rawBuf.WriteString(p)
|
rawBuf.WriteString(p)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user