From 88c756c83d7eecc1f8c09791c7c94bc0a2f86ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Mon, 25 Mar 2019 10:40:46 +0200 Subject: [PATCH] metrics: fix expensive metrics flag processing --- metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/metrics.go b/metrics/metrics.go index 6d14c8ecf..8ae7aec43 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -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 }