KEYCLOAK-18740 Admin events trigger transaction rollback if exception is thrown.

This commit is contained in:
bal1imb 2021-06-15 05:40:41 -07:00 committed by Stian Thorgersen
parent 8ffd53e206
commit 67e3df654f

View file

@ -242,11 +242,7 @@ public class AdminEventBuilder {
eventCopy.setId(UUID.randomUUID().toString());
if (store != null) {
try {
store.onEvent(eventCopy, includeRepresentation);
} catch (Throwable t) {
ServicesLogger.LOGGER.failedToSaveEvent(t);
}
store.onEvent(eventCopy, includeRepresentation);
}
if (listeners != null) {