metrics: fix expensive metrics flag processing

pull/19327/head
Péter Szilágyi 6 years ago
parent 71cb816a74
commit 88c756c83d
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
  1. 2
      metrics/metrics.go

@ -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…
Cancel
Save