AntonVasant commented on code in PR #20965:
URL: https://github.com/apache/kafka/pull/20965#discussion_r2579835011


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractHeartbeatRequestManager.java:
##########
@@ -315,7 +322,10 @@ private NetworkClientDelegate.UnsentRequest 
logResponse(final NetworkClientDeleg
                 else
                     logger.error("{} failed because of {}: {}", 
heartbeatRequestName(), error, response);
             } else {
-                logger.error("{} failed because of unexpected exception.", 
heartbeatRequestName(), exception);
+                if (isClosed) {
+                    logger.debug("{} failed because of exception during close: 
{}", heartbeatRequestName(), exception);
+                } else
+                    logger.error("{} failed because of unexpected exception: 
{}", heartbeatRequestName(), exception);

Review Comment:
   sure will make it both use the brackets



-- 
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]

Reply via email to