From 3e608f93723fba7397b5d948a6c925e6f54f9020 Mon Sep 17 00:00:00 2001 From: BabyHalimao Date: Sun, 2 Jun 2024 11:18:36 +0800 Subject: [PATCH] refactor: update `GlogHandler.Handle` function comments --- 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 625a036403..6f3eea1379 100644 --- a/log/handler_glog.go +++ b/log/handler_glog.go @@ -168,8 +168,8 @@ func (h *GlogHandler) WithGroup(name string) slog.Handler { panic("not implemented") } -// Log implements Handler.Log, filtering a log record through the global, local -// and backtrace filters, finally emitting it if either allow it through. +// Handle implements slog.Handler.Handle, filtering a log record through the global, local +// and backtrace filters, finally emitting it if either allows it through. func (h *GlogHandler) Handle(_ context.Context, r slog.Record) error { // If the global log level allows, fast track logging if slog.Level(h.level.Load()) <= r.Level {