Skip to content

Commit

Permalink
Tidy logging for openapi-java expose option build time code
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Apr 12, 2024
1 parent 0a42991 commit 1726682
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ void exposeOpenAPI(List<CamelRoutesBuilderClassBuildItem> routesBuilderClasses,
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)));
}
Expand Down Expand Up @@ -218,7 +217,7 @@ public void filterOpenAPI(OpenAPI openAPI) {
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;
}

Expand Down

0 comments on commit 1726682

Please sign in to comment.