You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/03/02 13:25:50 UTC

[GitHub] [kafka] dengziming commented on a change in pull request #10246: MINOR: add 'toString' to classes which are used by loggin

dengziming commented on a change in pull request #10246:
URL: https://github.com/apache/kafka/pull/10246#discussion_r585558320



##########
File path: clients/src/main/java/org/apache/kafka/common/protocol/types/Field.java
##########
@@ -46,6 +46,17 @@ public Field(String name, Type type) {
         this(name, type, null, false, null);
     }
 
+    @Override
+    public String toString() {
+        return "Field{" +
+                "name='" + name + '\'' +
+                ", docString='" + docString + '\'' +

Review comment:
       the docString field maybe very long so how about putting it to last?




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

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