From a2b3b2bae76b2a705e33c4589f50325bc9299ecd Mon Sep 17 00:00:00 2001 From: Mojtaba Date: Thu, 14 Nov 2024 14:27:01 +0100 Subject: [PATCH] chore: tiny cleanup --- test/e2e/simple.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/simple.go b/test/e2e/simple.go index 5884a0447f..2479dc2ccc 100644 --- a/test/e2e/simple.go +++ b/test/e2e/simple.go @@ -138,7 +138,9 @@ func E2ESimple(logger *logrus.Logger) error { MetricName: buildInfoMetricName, Labels: map[string]string{instanceMetricName: nodeID}, }) - logger.Infof("node: %s, metric value: %v", n.Name, value) + if err == nil { + logger.Infof("node: %s, metric value: %v", n.Name, value) + } return err }, metricRetryInterval, metricRetryTimeout)