From 592f9f8e38c2b915ed369c78454a1e337182f6e5 Mon Sep 17 00:00:00 2001 From: BabyHalimao Date: Tue, 11 Jun 2024 17:51:49 +0800 Subject: [PATCH] fix: ci lint --- log/handler_glog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log/handler_glog.go b/log/handler_glog.go index fa024fd8ce..739f8c5b42 100644 --- a/log/handler_glog.go +++ b/log/handler_glog.go @@ -146,7 +146,7 @@ func (h *GlogHandler) Enabled(ctx context.Context, lvl slog.Level) bool { return h.override.Load() || slog.Level(h.level.Load()) <= lvl } -// WithAttrs implements slog.Handler, returning a new Handler whose attributes +// WithAttrs implements slog.Handler, returning a new Handler whose attributes // consist of both the receiver's attributes and the arguments. func (h *GlogHandler) WithAttrs(attrs []slog.Attr) slog.Handler { h.lock.RLock() @@ -176,7 +176,7 @@ func (h *GlogHandler) WithGroup(name string) slog.Handler { panic("not implemented") } -// Handle implements slog.Handler, filtering a log record through the global, +// Handle implements slog.Handler, filtering a log record through the global, // local and backtrace filters, finally emitting it if either allow it through. func (h *GlogHandler) Handle(_ context.Context, r slog.Record) error { // If the global log level allows, fast track logging