aboutsummaryrefslogtreecommitdiffstats
path: root/utils/src/main/java/org/onap/policy/common/utils/logging/LoggerMarkerFilter.java
diff options
context:
space:
mode:
Diffstat (limited to 'utils/src/main/java/org/onap/policy/common/utils/logging/LoggerMarkerFilter.java')
-rw-r--r--utils/src/main/java/org/onap/policy/common/utils/logging/LoggerMarkerFilter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/src/main/java/org/onap/policy/common/utils/logging/LoggerMarkerFilter.java b/utils/src/main/java/org/onap/policy/common/utils/logging/LoggerMarkerFilter.java
index 90a7c8a1..2c9830dc 100644
--- a/utils/src/main/java/org/onap/policy/common/utils/logging/LoggerMarkerFilter.java
+++ b/utils/src/main/java/org/onap/policy/common/utils/logging/LoggerMarkerFilter.java
@@ -3,6 +3,7 @@
* ONAP POLICY
* ================================================================================
* Copyright (C) 2021 AT&T Intellectual Property. All right reserved.
+ * Modifications Copyright (C) 2023 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -42,11 +43,11 @@ public abstract class LoggerMarkerFilter extends AbstractMatcherFilter<ILoggingE
return FilterReply.DENY;
}
- if (event == null || event.getMarker() == null) {
+ if (event == null || event.getMarkerList() == null) {
return FilterReply.DENY;
}
- if (event.getMarker().equals(marker)) {
+ if (event.getMarkerList().stream().anyMatch(mk -> mk.equals(marker))) {
return FilterReply.ACCEPT;
} else {
return FilterReply.DENY;