fix caller skip count
Some checks failed
autoapprove / autoapprove (pull_request) Failing after 1m26s
automerge / automerge (pull_request) Failing after 4s
codeql / analyze (go) (pull_request) Failing after 3m14s
dependabot-automerge / automerge (pull_request) Has been skipped
prbuild / test (pull_request) Failing after 1m28s
prbuild / lint (pull_request) Failing after 2m34s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-08-01 09:24:42 +03:00
parent a269ede9df
commit 3c281e11c6

View File

@ -73,7 +73,7 @@ func (l *zeroLogger) Init(opts ...logger.Option) error {
// RESET
zerolog.TimeFieldFormat = time.RFC3339
zerolog.ErrorStackMarshaler = nil
zerolog.CallerSkipFrameCount = 4
zerolog.CallerSkipFrameCount = l.opts.Options.CallerSkipCount
switch l.opts.Mode {
case Development: