Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 89dfabe

Browse files
authored
chore: align time fields in logs (#1704)
ref: A comma or decimal point followed by one or more zeros represents a fractional second, printed to the given number of decimal places. A comma or decimal point followed by one or more nines represents a fractional second, printed to the given number of decimal places, with trailing zeros removed. For example "15:04:05,000" or "15:04:05.000" formats or parses with millisecond precision.
1 parent 5a9ad0e commit 89dfabe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log/log.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func init() {
2020
log.SetLevel(log.DebugLevel)
2121
log.SetFormatter(&log.TextFormatter{
2222
FullTimestamp: true,
23-
TimestampFormat: "2006-01-02T15:04:05.999999999Z07:00",
23+
TimestampFormat: "2006-01-02T15:04:05.000000000Z07:00",
2424
EnvironmentOverrideColors: true,
2525
})
2626
}

0 commit comments

Comments
 (0)