Skip to content

Commit

Permalink
fix: copy skipCaller in With. Fixes #62
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Sep 5, 2022
1 parent 12f061e commit 4b58eac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions otelzap/otelzap.go
Expand Up @@ -380,6 +380,7 @@ func (s *SugaredLogger) Desugar() *Logger {
func (s *SugaredLogger) With(args ...interface{}) *SugaredLogger {
return &SugaredLogger{
SugaredLogger: s.SugaredLogger.With(args...),
skipCaller: s.skipCaller,
l: s.l,
}
}
Expand Down

0 comments on commit 4b58eac

Please sign in to comment.