Skip to content

Commit

Permalink
KAFKA-5481: ListOffsetResponse isn't logged in the right way with tra…
Browse files Browse the repository at this point in the history
…ce level enabled

Added toString() method to ListOffsetResponse for logging

Author: ppatierno <[email protected]>
Author: Paolo Patierno <[email protected]>

Reviewers: Ewen Cheslack-Postava <[email protected]>

Closes apache#3383 from ppatierno/kafka-5481
  • Loading branch information
ppatierno authored and ewencp committed Jul 21, 2017
1 parent da42977 commit 6c6cf01
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,14 @@ protected Struct toStruct(short version) {

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();
}
}

0 comments on commit 6c6cf01

Please sign in to comment.