Fix unused parameter errors in debug.go slog.Handler interface

Rename unused parameters to _ in WithAttrs and WithGroup methods
as these are required by the slog.Handler interface
This commit is contained in:
Jeffrey Paul 2025-06-20 08:51:13 -07:00
parent dcab84249f
commit 8ca7796d04

View File

@ -123,13 +123,13 @@ func (h *colorizedHandler) Handle(_ context.Context, record slog.Record) error {
return err return err
} }
func (h *colorizedHandler) WithAttrs(attrs []slog.Attr) slog.Handler { func (h *colorizedHandler) WithAttrs(_ []slog.Attr) slog.Handler {
// For simplicity, return the same handler // For simplicity, return the same handler
// In a more complex implementation, we'd create a new handler with the attrs // In a more complex implementation, we'd create a new handler with the attrs
return h return h
} }
func (h *colorizedHandler) WithGroup(name string) slog.Handler { func (h *colorizedHandler) WithGroup(_ string) slog.Handler {
// For simplicity, return the same handler // For simplicity, return the same handler
// In a more complex implementation, we'd create a new handler with the group // In a more complex implementation, we'd create a new handler with the group
return h return h