Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Prettifying logs (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilherme-brandao authored Jan 29, 2024
1 parent 6c51ca3 commit cc7ab3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"
"os/signal"
"path/filepath"
"time"

"github.com/cockroachdb/pebble"
"github.com/labstack/echo/v4"
Expand Down Expand Up @@ -40,7 +41,7 @@ func run() int {
signal.Notify(sig, os.Interrupt)

// Initialize logging.
log := zerolog.New(os.Stderr).With().Timestamp().Logger().Level(zerolog.DebugLevel)
log := zerolog.New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}).With().Timestamp().Logger().Level(zerolog.DebugLevel)

// Parse CLI flags and validate that the configuration is valid.
cfg := parseFlags()
Expand Down

0 comments on commit cc7ab3d

Please sign in to comment.