Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Feb 19, 2025
1 parent 96271e9 commit e6b7de6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions log/logtest/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ type logger struct {
}

// Enabled indicates whether a specific record should be stored.
func (l *logger) Enabled(ctx context.Context, opts log.EnabledParameters) bool {
func (l *logger) Enabled(ctx context.Context, param log.EnabledParameters) bool {
if l.enabledFn == nil {
return defaultEnabledFunc(ctx, opts)
return defaultEnabledFunc(ctx, param)
}

return l.enabledFn(ctx, opts)
return l.enabledFn(ctx, param)
}

// Emit stores the log record.
Expand Down

0 comments on commit e6b7de6

Please sign in to comment.