diff --git a/log/internal/logr.go b/log/internal/logr.go index c713ce6e983..81c82cfea35 100644 --- a/log/internal/logr.go +++ b/log/internal/logr.go @@ -17,11 +17,11 @@ type logrSink struct { Logger log.Logger } -// Init is implementated as a dummy. +// Init is implemented as a dummy. func (s *logrSink) Init(info logr.RuntimeInfo) { } -// Enabled is implementated as a dummy. +// Enabled is implemented as a dummy. func (s *logrSink) Enabled(level int) bool { return true } @@ -59,16 +59,16 @@ func (s *logrSink) Info(level int, msg string, keysAndValues ...any) { s.Logger.Emit(ctx, record) } -// Error is implementated as a dummy. +// Error is implemented as a dummy. func (s *logrSink) Error(err error, msg string, keysAndValues ...any) { } -// WithValues is implementated as a dummy. +// WithValues is implemented as a dummy. func (s *logrSink) WithValues(keysAndValues ...any) logr.LogSink { return s } -// WithName is implementated as a dummy. +// WithName is implemented as a dummy. func (s *logrSink) WithName(name string) logr.LogSink { return s } diff --git a/log/internal/slog.go b/log/internal/slog.go index d0e764a76e0..db7ed3b4ff9 100644 --- a/log/internal/slog.go +++ b/log/internal/slog.go @@ -38,17 +38,17 @@ func (h *slogHandler) Handle(ctx context.Context, r slog.Record) error { return nil } -// Enabled is implementated as a dummy. +// Enabled is implemented as a dummy. func (h *slogHandler) Enabled(_ context.Context, _ slog.Level) bool { return true } -// WithAttrs is implementated as a dummy. +// WithAttrs is implemented as a dummy. func (h *slogHandler) WithAttrs(attrs []slog.Attr) slog.Handler { return h } -// WithGroup is implementated as a dummy. +// WithGroup is implemented as a dummy. func (h *slogHandler) WithGroup(name string) slog.Handler { return h }