From fcc7699f0e4ca24ee643db7984d021eaeba6850a Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Mon, 1 May 2023 14:14:13 -0400 Subject: [PATCH] remove incorrect warnings (#308) --- controller/metrics/usageIngest.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/controller/metrics/usageIngest.go b/controller/metrics/usageIngest.go index d22a3a57..e92542ee 100644 --- a/controller/metrics/usageIngest.go +++ b/controller/metrics/usageIngest.go @@ -47,8 +47,6 @@ func Ingest(event ZitiEventJson) (*Usage, error) { } else { logrus.Error("unable to assert 'usage/ingress.tx'") } - } else { - logrus.Warn("missing 'usage/ingress.tx'") } if v, found := usage["ingress.rx"]; found { if vFloat64, ok := v.(float64); ok { @@ -56,8 +54,6 @@ func Ingest(event ZitiEventJson) (*Usage, error) { } else { logrus.Error("unable to assert 'usage/ingress.rx") } - } else { - logrus.Warn("missing 'usage/ingress.rx") } if v, found := usage["egress.tx"]; found { if vFloat64, ok := v.(float64); ok { @@ -65,8 +61,6 @@ func Ingest(event ZitiEventJson) (*Usage, error) { } else { logrus.Error("unable to assert 'usage/egress.tx'") } - } else { - logrus.Warn("missing 'usage/egress.tx'") } if v, found := usage["egress.rx"]; found { if vFloat64, ok := v.(float64); ok { @@ -74,8 +68,6 @@ func Ingest(event ZitiEventJson) (*Usage, error) { } else { logrus.Error("unable to assert 'usage/egress.rx'") } - } else { - logrus.Warn("missing 'usage/egress.rx'") } } else { logrus.Errorf("unable to assert 'usage' (%v) %v", reflect.TypeOf(v), event)