You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a warning is logged when more than one functional bean is detected. The suggestion is to first check if the function is listed in the ineligible properties and, if so, skip the verification before logging the warning.
if (!StringUtils.hasText(functionDefinition)) {
Collection<Object> functionalBeans = this.getNames(null).stream()
.filter(name -> !RoutingFunction.FUNCTION_NAME.equals(name))
.filter(name -> !RoutingFunction.DEFAULT_ROUTE_HANDLER.equals(name))
.collect(Collectors.toList());
if (!CollectionUtils.isEmpty(functionalBeans) && functionalBeans.size() > 1) {
logger.warn("Multiple functional beans were found " + functionalBeans + ", thus can't determine default function definition. Please "
+ "use 'spring.cloud.function.definition' property to explicitly define it. ");
}
}
if (!isFunctionDefinitionEligible(functionDefinition)) {
returnnull;
}
Suggestion is to move block above block with warning log.
The text was updated successfully, but these errors were encountered:
Currently, a warning is logged when more than one functional bean is detected. The suggestion is to first check if the function is listed in the ineligible properties and, if so, skip the verification before logging the warning.
Suggestion is to move block above block with warning log.
The text was updated successfully, but these errors were encountered: