ListOffsetResponse isn't logged in the right way with trace level enabled
Added toString() method to ListOffsetResponse for logging
Author: ppatierno
Author: Paolo Patierno
Reviewers: Ewen Cheslack-Postava
Closes from ppatierno/kafka-5481
@@ -191,4 +191,14 @@ public class ListOffsetResponse extends AbstractResponse {
return struct;
}
+
+ @Override
+ public String toString() {
+ StringBuilder bld = new StringBuilder();
+ bld.append("(type=ListOffsetResponse")
+ .append(", throttleTimeMs=").append(throttleTimeMs)
+ .append(", responseData=").append(responseData)
+ .append(")");
+ return bld.toString();
+ }
}
