mirror of
https://github.com/openziti/zrok.git
synced 2025-01-22 22:09:03 +01:00
remove incorrect warnings (#308)
This commit is contained in:
parent
148281cb48
commit
fcc7699f0e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user