Merge pull request openziti/fabric#160 from openziti/only-warn-on-invalid-event-types

Only warn if subscription references invalid type, to allow better cr…
This commit is contained in:
Paul Lorenz
2021-01-25 15:37:35 -05:00
committed by GitHub
+1 -2
View File
@@ -89,8 +89,7 @@ func (eventHandlerConfig *eventHandlerConfig) processSubscriptions(handler inter
for k := range eventTypes {
validTypes = append(validTypes, k)
}
return errors.Errorf("invalid event type %v. valid types are %v", eventType, strings.Join(validTypes, ","))
logger.Warnf("invalid event type %v. valid types are %v", eventType, strings.Join(validTypes, ","))
}
}
return nil