mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
KEYCLOAK-6240 Exclude events doesn't work in examples
This commit is contained in:
committed by
Stian Thorgersen
parent
f762173eb0
commit
6f624b29e4
@@ -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) {
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user