mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 08:44:14 +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 {
|
||||
case event := <-a.events:
|
||||
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 {
|
||||
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
|
||||
for _, snk := range a.snks {
|
||||
|
Loading…
Reference in New Issue
Block a user