Skip to content

Commit

Permalink
chore(log): add caller (kyverno#10874)
Browse files Browse the repository at this point in the history
Signed-off-by: Khaled Emara <[email protected]>
  • Loading branch information
KhaledEmaraDev authored Aug 16, 2024
1 parent 06ffd1c commit a5915a3
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 a5915a3

Please sign in to comment.