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)) {
|
else if (!ObjectUtils.isEmpty(names)) {
|
||||||
if (names.size() > 1) {
|
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 "
|
+ ". 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 "
|
+ "intend to use functions in the context of spring-cloud-function, consider "
|
||||||
+ "providing 'spring.cloud.function.definition' property pointing to a function bean(s) "
|
+ "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) {
|
for (String name : names) {
|
||||||
Object function = this.locateFunction(name);
|
Object function = this.locateFunction(name);
|
||||||
if (function == null) {
|
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 "
|
+ "Function available in catalog are: " + this.getNames(null) + ". This is generally "
|
||||||
+ "acceptable for cases where there was no intention to use functions.");
|
+ "acceptable for cases where there was no intention to use functions.");
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user