This is an automated email from the ASF dual-hosted git repository.

brandonwilliams pushed a commit to branch cassandra-4.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/cassandra-4.0 by this push:
     new 6a640b0c4e Change logging to TRACE when failing to get peer 
certificates
6a640b0c4e is described below

commit 6a640b0c4e6e3aecca08c749250e2dfec18063ab
Author: Mohammad Aburadeh <mohmmad_abura...@hotmail.com>
AuthorDate: Mon Apr 1 19:04:03 2024 +0000

    Change logging to TRACE when failing to get peer certificates
    
    Patch by Mohammad Aburadeh; reviewed by brandonwilliams and jonmeredith
    for CASSANDRA-19508
---
 CHANGES.txt                                                   | 1 +
 src/java/org/apache/cassandra/transport/ServerConnection.java | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CHANGES.txt b/CHANGES.txt
index 69f8be60a5..20f4fd47ea 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 4.0.13
+ * Change logging to TRACE when failing to get peer certificate 
(CASSANDRA-19508)
  * Push LocalSessions info logs to debug (CASSANDRA-18335)
  * Filter remote DC replicas out when constructing the initial replica plan 
for the local read repair (CASSANDRA-19120)
  * Remove redundant code in StorageProxy#sendToHintedReplicas (CASSANDRA-19412)
diff --git a/src/java/org/apache/cassandra/transport/ServerConnection.java 
b/src/java/org/apache/cassandra/transport/ServerConnection.java
index 06e7842e90..35ed21d301 100644
--- a/src/java/org/apache/cassandra/transport/ServerConnection.java
+++ b/src/java/org/apache/cassandra/transport/ServerConnection.java
@@ -137,7 +137,8 @@ public class ServerConnection extends Connection
             }
             catch (SSLPeerUnverifiedException e)
             {
-                logger.debug("Failed to get peer certificates for peer {}", 
channel().remoteAddress(), e);
+                if (logger.isTraceEnabled())
+                    logger.trace("Failed to get peer certificates for peer 
{}", channel().remoteAddress(), e);
             }
         }
         return certificates;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to