Change log level for default function discovery

This commit is contained in:
Oleg Zhurakousky
2020-09-02 14:45:33 +02:00
parent 584d238b9e
commit 368ac59655
2 changed files with 2 additions and 2 deletions

View File

@@ -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) "

View File

@@ -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;