metrics: fix expensive metrics flag processing

This commit is contained in:
Péter Szilágyi 2019-03-25 10:40:46 +02:00
parent 71cb816a74
commit 88c756c83d
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func init() {
}
}
for _, enabler := range expensiveEnablerFlags {
if !Enabled && flag == enabler {
if !EnabledExpensive && flag == enabler {
log.Info("Enabling expensive metrics collection")
EnabledExpensive = true
}