Skip to content

Commit

Permalink
chore: align time fields in logs (#1704)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
valord577 authored Dec 19, 2024
1 parent 5a9ad0e commit 89dfabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func init() {
log.SetLevel(log.DebugLevel)
log.SetFormatter(&log.TextFormatter{
FullTimestamp: true,
TimestampFormat: "2006-01-02T15:04:05.999999999Z07:00",
TimestampFormat: "2006-01-02T15:04:05.000000000Z07:00",
EnvironmentOverrideColors: true,
})
}
Expand Down

0 comments on commit 89dfabe

Please # to comment.