Skip to content

Commit dec0287

Browse files
wilsonrfolegz
authored andcommitted
GH-1285 Change log level to debug for failed function lookup
Resolves #1285 Signed-off-by: Wilson da Rocha Franca <[email protected]> Resolves #1286
1 parent 53b62fe commit dec0287

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/catalog/SimpleFunctionRegistry.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,10 @@ private FunctionInvocationWrapper compose(Class<?> type, String functionDefiniti
300300
for (String functionName : functionNames) {
301301
FunctionInvocationWrapper function = this.findFunctionInFunctionRegistrations(functionName);
302302
if (function == null) {
303-
logger.warn("Failed to locate function '" + functionName + "' for function definition '"
303+
if (logger.isDebugEnabled()) {
304+
logger.debug("Failed to locate function '" + functionName + "' for function definition '"
304305
+ functionDefinition + "'. Returning null.");
306+
}
305307
return null;
306308
}
307309
else {

0 commit comments

Comments
 (0)