Skip to content

Commit d20aa3d

Browse files
committed
GH-1265 Add logging for failed function lookup
Resolves #1265
1 parent e460c44 commit d20aa3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ 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 '"
304+
+ functionDefinition + "'. Returning null.");
303305
return null;
304306
}
305307
else {

0 commit comments

Comments
 (0)