From 2037e167b75850ab63900f5ce752c5f81b7c3590 Mon Sep 17 00:00:00 2001 From: "Rustam Lotsmanenko (EPAM)" <rustam_lotsmanenko@epam.com> Date: Wed, 7 Aug 2024 07:25:00 +0000 Subject: [PATCH] lower log level if self-signed SSL certificate enabled --- NOTICE | 4 ++-- .../org/opengroup/osdu/search/util/ElasticClientHandler.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NOTICE b/NOTICE index 4c699a3ff..0e9ba88bd 100644 --- a/NOTICE +++ b/NOTICE @@ -101,7 +101,7 @@ The following software have components provided under the terms of this license: - Guava: Google Core Libraries for Java (from http://code.google.com/p/guava-libraries, https://github.com/google/guava, https://repo1.maven.org/maven2/com/google/guava/guava) - HTTP functionality for the Reactor Netty library (from https://github.com/reactor/reactor-netty) - HdrHistogram (from http://hdrhistogram.github.io/HdrHistogram/) -- Hibernate Validator (from https://repo1.maven.org/maven2/org/hibernate/hibernate-validator, https://repo1.maven.org/maven2/org/hibernate/validator/hibernate-validator) +- Hibernate Validator (from http://hibernate.org/validator, https://repo1.maven.org/maven2/org/hibernate/hibernate-validator, https://repo1.maven.org/maven2/org/hibernate/validator/hibernate-validator) - High Performance Primitive Collections (from https://github.com/carrotsearch/hppc) - J2ObjC Annotations (from https://github.com/google/j2objc/) - JBoss Logging 3 (from http://www.jboss.org) @@ -504,7 +504,7 @@ The following software have components provided under the terms of this license: - Guava: Google Core Libraries for Java (from http://code.google.com/p/guava-libraries, https://github.com/google/guava, https://repo1.maven.org/maven2/com/google/guava/guava) - HdrHistogram (from http://hdrhistogram.github.io/HdrHistogram/) -- Hibernate Validator (from https://repo1.maven.org/maven2/org/hibernate/hibernate-validator, https://repo1.maven.org/maven2/org/hibernate/validator/hibernate-validator) +- Hibernate Validator (from http://hibernate.org/validator, https://repo1.maven.org/maven2/org/hibernate/hibernate-validator, https://repo1.maven.org/maven2/org/hibernate/validator/hibernate-validator) - LatencyUtils (from http://latencyutils.github.io/LatencyUtils/) - Netty/Common (from https://repo1.maven.org/maven2/io/netty/netty-common) - jersey-container-servlet (from https://repo1.maven.org/maven2/org/glassfish/jersey/containers/jersey-container-servlet) diff --git a/search-core/src/main/java/org/opengroup/osdu/search/util/ElasticClientHandler.java b/search-core/src/main/java/org/opengroup/osdu/search/util/ElasticClientHandler.java index b3fe1a00a..116f979d4 100644 --- a/search-core/src/main/java/org/opengroup/osdu/search/util/ElasticClientHandler.java +++ b/search-core/src/main/java/org/opengroup/osdu/search/util/ElasticClientHandler.java @@ -126,7 +126,7 @@ public class ElasticClientHandler { + "'security.https.certificate.trust' = %s", protocolScheme, securityHttpsCertificateTrust)); if ("https".equals(protocolScheme) && securityHttpsCertificateTrust) { - log.warn("Elastic client connection uses TrustSelfSignedStrategy()"); + log.debug("Elastic client connection uses TrustSelfSignedStrategy()"); SSLContext sslContext = createSSLContext(); builder.setHttpClientConfigCallback(httpClientBuilder -> { -- GitLab