Skip to content

Commit

Permalink
Fix minlevel when debug = debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaticivan committed May 3, 2024
1 parent dd348af commit d507252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otelzap/otelzap.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func (s *SugaredLogger) FatalfContext(ctx context.Context, template string, args
func (s *SugaredLogger) logArgs(
ctx context.Context, lvl zapcore.Level, template string, args []interface{},
) {
if lvl < s.l.minLevel {
if lvl <= s.l.minLevel {
return
}
span := trace.SpanFromContext(ctx)
Expand Down

0 comments on commit d507252

Please sign in to comment.