This is an automated email from the ASF dual-hosted git repository.
orpiske 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 c9ddab1906c CAMEL-20163: consolidate duplicated logging code
c9ddab1906c is described below
commit c9ddab1906c9cd9f6f956508ada0b4ca10c62142
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Wed Nov 29 11:25:16 2023 +0100
CAMEL-20163: consolidate duplicated logging code
---
.../netty/http/HttpServerSharedInitializerFactory.java | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerSharedInitializerFactory.java
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerSharedInitializerFactory.java
index 3b3f81f6874..c4abf4845cb 100644
---
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerSharedInitializerFactory.java
+++
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerSharedInitializerFactory.java
@@ -110,15 +110,8 @@ public class HttpServerSharedInitializerFactory extends
HttpServerInitializerFac
if (configuration.getSslContextParameters() != null) {
answer =
configuration.getSslContextParameters().createSSLContext(null);
} else {
- if (configuration.getKeyStoreFile() == null &&
configuration.getKeyStoreResource() == null) {
- LOG.debug("keystorefile is null");
- }
- if (configuration.getTrustStoreFile() == null &&
configuration.getTrustStoreResource() == null) {
- LOG.debug("truststorefile is null");
- }
- if (configuration.getPassphrase() == null) {
- LOG.debug("passphrase is null");
- }
+ InitializerHelper.logConfiguration(configuration);
+
char[] pw = configuration.getPassphrase() != null ?
configuration.getPassphrase().toCharArray() : null;
SSLEngineFactory sslEngineFactory;