diff --git a/log/handler_glog.go b/log/handler_glog.go index 0534d1bbb2..e3c670c2a7 100644 --- a/log/handler_glog.go +++ b/log/handler_glog.go @@ -68,6 +68,8 @@ type pattern struct { // and source files can be raised using Vmodule. func (h *GlogHandler) Verbosity(level slog.Level) { h.level.Store(int32(level)) + // clear the cache to make sure the verbosity is applied correctly. + h.siteCache = make(map[uintptr]slog.Level) } // Vmodule sets the glog verbosity pattern.