KEYCLOAK-6240 Exclude events doesn't work in examples

This commit is contained in:
Martin Kanis
2018-01-18 10:58:35 +01:00
committed by Stian Thorgersen
parent f762173eb0
commit 6f624b29e4
2 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ public class SysoutEventListenerProviderFactory implements EventListenerProvider
@Override
public void init(Config.Scope config) {
String[] excludes = config.getArray("excludes");
String[] excludes = config.getArray("exclude-events");
if (excludes != null) {
excludedEvents = new HashSet<>();
for (String e : excludes) {

View File

@@ -53,10 +53,10 @@ public class MemEventStoreProviderFactory implements EventStoreProviderFactory {
events = Collections.synchronizedList(new LinkedList<Event>());
adminEvents = Collections.synchronizedList(new LinkedList<AdminEvent>());
String excludes = config.get("excludes");
String[] excludes = config.getArray("exclude-events");
if (excludes != null) {
excludedEvents = new HashSet<>();
for (String e : excludes.split(",")) {
for (String e : excludes) {
excludedEvents.add(EventType.valueOf(e));
}
}