smiklosovic commented on code in PR #2924:
URL: https://github.com/apache/cassandra/pull/2924#discussion_r1416345479


##########
src/java/org/apache/cassandra/transport/PreV5Handlers.java:
##########
@@ -327,6 +330,13 @@ public void exceptionCaught(final ChannelHandlerContext 
ctx, Throwable cause)
                 logger.debug("Excluding client exception for {}; address 
contained in client_error_reporting_exclusions", ctx.channel().remoteAddress(), 
cause);
                 return;
             }
+
+            if (Throwables.anyCauseMatches(cause, t -> t instanceof 
SSLException))
+            {
+                logger.warn("SSLException in client networking with peer {} 
{}", ctx.channel().remoteAddress(), cause.getMessage());

Review Comment:
   @jameshu15869  just put `ctx.channel().remoteAddress()` into 
`logClientNetworkingExceptions` as the second parameter of that method and move 
that `if` there and log it with NoSpamLogger.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to