mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
log: enable location on vmodule usage
This commit is contained in:
parent
8d969279c6
commit
81f5cbd333
1 changed files with 4 additions and 1 deletions
|
|
@ -139,7 +139,10 @@ func (h *GlogHandler) Vmodule(ruleset string) error {
|
|||
h.patterns = filter
|
||||
h.siteCache = make(map[uintptr]Lvl)
|
||||
h.override.Store(len(filter) != 0)
|
||||
|
||||
// Enable location storage (globally)
|
||||
if len(h.patterns) > 0 {
|
||||
locationEnabled.Store(true)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue