You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/09/06 08:51:27 UTC

[GitHub] [inlong] healchow commented on a diff in pull request #5801: [INLONG-5795][TubeMQ] Optimize the implementation of ConsumerEvent.toStrBuilder()

healchow commented on code in PR #5801:
URL: https://github.com/apache/inlong/pull/5801#discussion_r963438254


##########
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/nodemanage/nodeconsumer/ConsumerEventManager.java:
##########
@@ -144,9 +144,10 @@ public ConsumerEvent removeFirst(String consumerId) {
             }
         }
         if (event != null) {
-            StringBuilder sBuilder = new StringBuilder(512);
-            sBuilder.append("[Event Removed] ");
-            logger.info(event.toStrBuilder(sBuilder).toString());
+            logger.info(new StringBuilder(512)

Review Comment:
   Suggested using the `{}` instead of StringBuilder in log info.



-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org