Skip to content

Commit

Permalink
Merge branch 'main' into metrics-default
Browse files Browse the repository at this point in the history
  • Loading branch information
anushkamittal2001 authored Aug 16, 2024
2 parents 29b705f + a5915a3 commit c4cc6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logging/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func Setup(logFormat string, loggingTimestampFormat string, level int) error {
case TextFormat:
output := zerolog.ConsoleWriter{Out: os.Stderr}
output.TimeFormat = resolveTimestampFormat(loggingTimestampFormat)
logger = zerolog.New(output).With().Timestamp().Logger()
logger = zerolog.New(output).With().Timestamp().Caller().Logger()
case JSONFormat:
logger = zerolog.New(os.Stderr).With().Timestamp().Logger()
default:
Expand Down

0 comments on commit c4cc6c1

Please sign in to comment.