mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 17:13:45 +00:00
log: clear siteCache on setting the verbosity
This commit is contained in:
parent
0f03ee83e8
commit
64773bf6bc
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue