KEYCLOAK-19501 Removed exception handling on failed event persistence in the EventBuilder class.

This commit is contained in:
bal1imb 2021-10-07 07:01:46 -07:00 committed by Bruno Oliveira da Silva
parent c9764e114e
commit 07d47cf6c2

View file

@ -215,11 +215,7 @@ public class EventBuilder {
if (store != null) {
Set<String> eventTypes = realm.getEnabledEventTypesStream().collect(Collectors.toSet());
if (!eventTypes.isEmpty() ? eventTypes.contains(event.getType().name()) : event.getType().isSaveByDefault()) {
try {
store.onEvent(event);
} catch (Throwable t) {
log.error("Failed to save event", t);
}
store.onEvent(event);
}
}