Change log level for default function discovery
This commit is contained in:
@@ -191,7 +191,7 @@ public class BeanFactoryAwareFunctionRegistry extends SimpleFunctionRegistry imp
|
||||
}
|
||||
else if (!ObjectUtils.isEmpty(names)) {
|
||||
if (names.size() > 1) {
|
||||
logger.debug("Found more than one function bean in BeanFactory: " + names
|
||||
logger.warn("Found more than one function bean in BeanFactory: " + names
|
||||
+ ". If you did not intend to use functions, ignore this message. However, if you did "
|
||||
+ "intend to use functions in the context of spring-cloud-function, consider "
|
||||
+ "providing 'spring.cloud.function.definition' property pointing to a function bean(s) "
|
||||
|
||||
@@ -300,7 +300,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
|
||||
for (String name : names) {
|
||||
Object function = this.locateFunction(name);
|
||||
if (function == null) {
|
||||
logger.debug("Failed to discover function '" + definition + "' in function catalog. "
|
||||
logger.warn("Failed to discover function '" + definition + "' in function catalog. "
|
||||
+ "Function available in catalog are: " + this.getNames(null) + ". This is generally "
|
||||
+ "acceptable for cases where there was no intention to use functions.");
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user