mirror of
https://github.com/openziti/zrok.git
synced 2025-02-16 18:20:51 +01:00
we can only skip missing ziti service ids when augmenting usage with zrok details
This commit is contained in:
parent
4e20b35db3
commit
17a2e66cb0
@ -45,12 +45,10 @@ func (a *Agent) Start() error {
|
|||||||
select {
|
select {
|
||||||
case event := <-a.events:
|
case event := <-a.events:
|
||||||
if usage, err := Ingest(event.Data()); err == nil {
|
if usage, err := Ingest(event.Data()); err == nil {
|
||||||
if usage.AccountId != 0 || usage.EnvironmentId != 0 {
|
if usage.ZitiServiceId != "" {
|
||||||
if err := a.cache.addZrokDetail(usage); err != nil {
|
if err := a.cache.addZrokDetail(usage); err != nil {
|
||||||
logrus.Errorf("unable to add zrok detail for: %v: %v", usage.String(), err)
|
logrus.Errorf("unable to add zrok detail for: %v: %v", usage.String(), err)
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
logrus.Debugf("skipping zrok detail for: %v", usage.String())
|
|
||||||
}
|
}
|
||||||
shouldAck := true
|
shouldAck := true
|
||||||
for _, snk := range a.snks {
|
for _, snk := range a.snks {
|
||||||
|
Loading…
Reference in New Issue
Block a user