Skip to content

Commit

Permalink
Add warning log when ignoring a non-indexed Attribute Consuming Service
Browse files Browse the repository at this point in the history
When a non-indexed Attribute Consuming Service is defined in
configuration along with other indexed Services, a warning is printed to
the log to inform that the non-indexed one will be ignored.
  • Loading branch information
mauromol committed Nov 5, 2021
1 parent d66fd25 commit f272092
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,13 @@ private List<AttributeConsumingService> loadAttributeConsumingServices() {
// multiple indexed services specified
return acsProps.entrySet().stream()
// ignore non-indexed service
.filter(entry -> entry.getKey() != -1)
.filter(entry -> {
final boolean indexed = entry.getKey() != -1;
if(!indexed) {
LOGGER.warn("non indexed Attribute Consuming Service found along with other indexed Services; the non-indexed one will be ignored");
}
return indexed;
})
.map(entry -> loadAttributeConsumingService(entry.getValue(), entry.getKey()))
.collect(Collectors.toList());
}
Expand Down

0 comments on commit f272092

Please sign in to comment.