mirror of https://github.com/status-im/op-geth.git
Merge pull request #19327 from karalabe/fix-expensive-metrics
metrics: fix expensive metrics flag processing
This commit is contained in:
commit
acbb8a1439
|
@ -46,7 +46,7 @@ func init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, enabler := range expensiveEnablerFlags {
|
for _, enabler := range expensiveEnablerFlags {
|
||||||
if !Enabled && flag == enabler {
|
if !EnabledExpensive && flag == enabler {
|
||||||
log.Info("Enabling expensive metrics collection")
|
log.Info("Enabling expensive metrics collection")
|
||||||
EnabledExpensive = true
|
EnabledExpensive = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue