Skip to content

Commit db5f775

Browse files
authored
fix: correct async/sync provider log messages in McpPredicates (#89)
- Fix ASYNC provider warning (was mislabeled as Sync with wrong return type description) - Fix SYNC provider warning capitalization and grammar Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent 3797004 commit db5f775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mcp-annotations/src/main/java/org/springaicommunity/mcp/McpPredicates.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static Predicate<Method> filterNonReactiveReturnTypeMethod() {
5454
return true;
5555
}
5656
logger.warn(
57-
"Sync providers doesn't support reactive return types. Skipping method {} with reactive return type {}",
57+
"ASYNC Providers don't support imperative (non-reactive) return types. Skipping method {} with non-reactive return type {}",
5858
method, method.getReturnType());
5959
return false;
6060
};
@@ -66,7 +66,7 @@ public static Predicate<Method> filterReactiveReturnTypeMethod() {
6666
return true;
6767
}
6868
logger.warn(
69-
"Sync providers doesn't support reactive return types. Skipping method {} with reactive return type {}",
69+
"SYNC Providers don't support reactive return types. Skipping method {} with reactive return type {}",
7070
method, method.getReturnType());
7171
return false;
7272
};

0 commit comments

Comments
 (0)