This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 1726682d17 Tidy logging for openapi-java expose option build time code
1726682d17 is described below
commit 1726682d17b6950d4825affdc69ca6e03f0b7524
Author: James Netherton <[email protected]>
AuthorDate: Fri Apr 12 08:21:52 2024 +0100
Tidy logging for openapi-java expose option build time code
---
.../component/openapi/java/deployment/OpenApiJavaProcessor.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/extensions/openapi-java/deployment/src/main/java/org/apache/camel/quarkus/component/openapi/java/deployment/OpenApiJavaProcessor.java
b/extensions/openapi-java/deployment/src/main/java/org/apache/camel/quarkus/component/openapi/java/deployment/OpenApiJavaProcessor.java
index 1a0706c54d..db00219082 100644
---
a/extensions/openapi-java/deployment/src/main/java/org/apache/camel/quarkus/component/openapi/java/deployment/OpenApiJavaProcessor.java
+++
b/extensions/openapi-java/deployment/src/main/java/org/apache/camel/quarkus/component/openapi/java/deployment/OpenApiJavaProcessor.java
@@ -185,8 +185,7 @@ class OpenApiJavaProcessor {
try {
configurer.configureRoutes(ctx);
} catch (Exception e) {
- //ignore
- LOGGER.warn("config routes failed with " + e);
+ LOGGER.warn("Failed to configure routes due to: {}.",
e.getMessage(), e);
}
openAPI.produce(new AddToOpenAPIDefinitionBuildItem(new
CamelRestOASFilter(ctx)));
}
@@ -218,7 +217,7 @@ class CamelRestOASFilter implements OASFilter {
final List<RestDefinition> rests =
resolver.getRestDefinitions(context, null);
if (rests == null || rests.isEmpty()) {
- LOGGER.debug("Can not find Rest definitions");
+ LOGGER.warn("Unable to find Camel REST definitions to expose
on the Quarkus OpenAPI endpoint.");
return;
}