mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-28 13:42:31 +02:00
Fix log format
This commit is contained in:
parent
0db65a8984
commit
6ead0ff95e
@ -133,7 +133,7 @@ func (l *Logger) Trace(format string, args ...any) {
|
|||||||
|
|
||||||
func (l *Logger) formatMessage(buf *[]byte, level Level, format string, args ...any) {
|
func (l *Logger) formatMessage(buf *[]byte, level Level, format string, args ...any) {
|
||||||
*buf = (*buf)[:0]
|
*buf = (*buf)[:0]
|
||||||
*buf = time.Now().AppendFormat(*buf, "2006-01-02T15:04:05.000-07:00")
|
*buf = time.Now().AppendFormat(*buf, "2006-01-02T15:04:05-07:00")
|
||||||
*buf = append(*buf, ' ')
|
*buf = append(*buf, ' ')
|
||||||
*buf = append(*buf, levelStrings[level]...)
|
*buf = append(*buf, levelStrings[level]...)
|
||||||
*buf = append(*buf, ' ')
|
*buf = append(*buf, ' ')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user