From 68d523ccddc09a61a17f1f93c138c229b230cfb6 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Tue, 1 Apr 2025 12:37:00 +0200 Subject: [PATCH] log: allow --vmodule to downgrade the log level --- log/handler_glog.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/log/handler_glog.go b/log/handler_glog.go index 739f8c5b42..d88e6ba64c 100644 --- a/log/handler_glog.go +++ b/log/handler_glog.go @@ -179,11 +179,6 @@ func (h *GlogHandler) WithGroup(name string) slog.Handler { // 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 - if slog.Level(h.level.Load()) <= r.Level { - return h.origin.Handle(context.Background(), r) - } - // Check callsite cache for previously calculated log levels h.lock.RLock() lvl, ok := h.siteCache[r.PC]