Skip to content

Commit

Permalink
Log duration in seconds.
Browse files Browse the repository at this point in the history
Signed-off-by: Ville Valkonen <weezel@users.noreply.github.com>
  • Loading branch information
weezel committed Dec 29, 2023
1 parent 8925dff commit 69f7e03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func init() {
uniqID = randID()

zerolog.TimeFieldFormat = time.RFC3339
zerolog.DurationFieldUnit = time.Second
zerolog.ErrorStackMarshaler = pkgerrors.MarshalStack
Logger = zerolog.New(os.Stdout).
Level(logLevel).
Expand Down

0 comments on commit 69f7e03

Please sign in to comment.