This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new a7f14b75cf0 Polish
a7f14b75cf0 is described below
commit a7f14b75cf07e267fd7095c9f8d9c4aedace751f
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jun 13 12:17:00 2024 +0200
Polish
---
.../camel/springboot/openapi/OpenApiAutoConfiguration.java | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git
a/components-starter/camel-openapi-java-starter/src/main/java/org/apache/camel/springboot/openapi/OpenApiAutoConfiguration.java
b/components-starter/camel-openapi-java-starter/src/main/java/org/apache/camel/springboot/openapi/OpenApiAutoConfiguration.java
index b696e4db0fd..2de0dde3bf9 100644
---
a/components-starter/camel-openapi-java-starter/src/main/java/org/apache/camel/springboot/openapi/OpenApiAutoConfiguration.java
+++
b/components-starter/camel-openapi-java-starter/src/main/java/org/apache/camel/springboot/openapi/OpenApiAutoConfiguration.java
@@ -71,8 +71,14 @@ public class OpenApiAutoConfiguration {
try {
OpenAPI created = createOpenAPI(camelContext);
if (created != null) {
- LOG.info("OpenAPI ({}) created from Camel Rest-DSL v{}
- {}", created.getOpenapi(),
- created.getInfo().getVersion(),
created.getInfo().getTitle());
+ String msg = "OpenAPI (" + created.getOpenapi() + ")
created from Camel Rest-DSL";
+ if (created.getInfo().getVersion() != null) {
+ msg += " v" + created.getInfo().getVersion();
+ }
+ if (created.getInfo().getTitle() != null) {
+ msg += " " + created.getInfo().getTitle();
+ }
+ LOG.info(msg);
// transfer data to the existing
openAPI.setInfo(created.getInfo());
openAPI.setOpenapi(created.getOpenapi());