leizhiyuan commented on code in PR #5826:
URL: https://github.com/apache/rocketmq/pull/5826#discussion_r1073296851


##########
common/src/main/java/org/apache/rocketmq/common/message/Message.java:
##########
@@ -228,4 +228,14 @@ public void setDeliverTimeMs(long timeMs) {
     public long getDeliverTimeMs() {
         return 
Long.parseLong(this.getUserProperty(MessageConst.PROPERTY_TIMER_DELIVER_MS));
     }
+
+    private String getBodyStr(byte[] body) {
+        if (body == null) {
+            return "body is null";
+        }
+        if (body.length > 3000) {

Review Comment:
   maybe a better way is use the first 3000 characters? 



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