HScarb commented on a change in pull request #3897:
URL: https://github.com/apache/rocketmq/pull/3897#discussion_r816936215



##########
File path: 
client/src/main/java/org/apache/rocketmq/client/impl/MQClientAPIImpl.java
##########
@@ -621,7 +621,7 @@ private void onExceptionImpl(final String brokerName,
                 retryBrokerName = mqChosen.getBrokerName();
             }
             String addr = instance.findBrokerAddressInPublish(retryBrokerName);
-            log.warn(String.format("async send msg by retry {} times. 
topic={}, brokerAddr={}, brokerName={}", tmp, msg.getTopic(), addr,
+            log.warn(String.format("async send msg by retry %s times. 
topic=%s, brokerAddr=%s, brokerName=%s", tmp, msg.getTopic(), addr,

Review comment:
       IMHO, It would better to remove the `String.format()`, and format the 
exception message in another `{}`




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