Skip to content

Commit

Permalink
[python] Encode error in single line for jsonlines case. (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored Mar 15, 2024
1 parent 256a8a6 commit c4ea007
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void addResponse(byte[] json) {
if (error != null) {
map.put("error", error);
}
byte[] buffer = JsonUtils.GSON_PRETTY.toJson(map).getBytes(StandardCharsets.UTF_8);
byte[] buffer = JsonUtils.GSON.toJson(map).getBytes(StandardCharsets.UTF_8);
data.appendContent(buffer, true);
} else {
if (last && metrics != null) {
Expand Down

0 comments on commit c4ea007

Please sign in to comment.