mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
chore(log): add caller (#10874)
Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
This commit is contained in:
parent
06ffd1c961
commit
a5915a310b
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue