Skip to content

Commit 4fe9505

Browse files
committed
fix(log): increase resolution of all log timestamps
Helps log aggregators present log entries in the right order.
1 parent a38f95f commit 4fe9505

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/spicedb/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"errors"
55
"os"
6+
"time"
67

78
"github.com/rs/zerolog"
89
"github.com/sercand/kuberesolver/v5"
@@ -22,6 +23,7 @@ func main() {
2223

2324
// Set up root logger
2425
// This will typically be overwritten by the logging setup for a given command.
26+
zerolog.TimeFieldFormat = time.RFC3339Nano
2527
log.SetGlobalLogger(zerolog.New(os.Stderr).Level(zerolog.InfoLevel))
2628

2729
// Enable Kubernetes gRPC resolver

0 commit comments

Comments
 (0)