Merge pull request 'fix caller skip count' (#112) from skip into master
Some checks failed
build / test (push) Failing after 1m28s
build / lint (push) Failing after 2m34s
codeql / analyze (go) (push) Failing after 3m2s

Reviewed-on: #112
This commit is contained in:
Василий Толстов 2023-08-01 09:27:39 +03:00
commit e2df7bc8ff

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: