diff --git a/internal/utils/singleton.go b/internal/utils/singleton.go index d51a209e4..d2a5a9685 100644 --- a/internal/utils/singleton.go +++ b/internal/utils/singleton.go @@ -9,6 +9,7 @@ import ( "path" "sync" "sync/atomic" + "time" "github.com/ethereum/go-ethereum/log" "github.com/natefinch/lumberjack" @@ -139,6 +140,7 @@ func setZeroLoggerFileOutput(filepath string, maxSize int) error { // Logger returns a zerolog.Logger singleton func Logger() *zerolog.Logger { if zeroLogger == nil { + zerolog.TimeFieldFormat = time.RFC3339Nano logger := zerolog.New(zerolog.ConsoleWriter{Out: os.Stderr}). Level(zeroLoggerLevel). With().