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.git
The following commit(s) were added to refs/heads/main by this push:
new 63ed1d3 Polished
63ed1d3 is described below
commit 63ed1d34237490c070023403f769ab4eb5fe292e
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Oct 9 17:53:46 2021 +0200
Polished
---
.../java/org/apache/camel/openapi/OpenApiRestProducerFactory.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/OpenApiRestProducerFactory.java
b/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/OpenApiRestProducerFactory.java
index e727d30..0933d19 100644
---
a/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/OpenApiRestProducerFactory.java
+++
b/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/OpenApiRestProducerFactory.java
@@ -102,7 +102,9 @@ public class OpenApiRestProducerFactory implements
RestProducerFactory {
final ObjectMapper mapper = new ObjectMapper();
try {
final JsonNode node = mapper.readTree(is);
- LOG.debug("Loaded openApi api-doc:\n{}", node.toPrettyString());
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Loaded openApi api-doc:\n{}",
node.toPrettyString());
+ }
return (OasDocument) Library.readDocument(node);
} finally {