Skip to content

Commit f8797bc

Browse files
committed
Print view contents as text
1 parent df2624c commit f8797bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/java/org/elasticsearch/xpack/esql/CsvTestsDataLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ private static boolean getView(RestClient client, String viewName, Logger logger
627627
Response response = client.performRequest(request);
628628
logger.info("View response status: {}", response.getStatusLine());
629629
logger.info("View response body info: {}", response.getEntity());
630-
logger.info("View response body: {}", response.getEntity().getContent());
630+
logger.info("View response body: {}", new String(response.getEntity().getContent().readAllBytes()));
631631
} catch (ResponseException e) {
632632
logger.info("View error: {}", e.getMessage());
633633
int code = e.getResponse().getStatusLine().getStatusCode();

0 commit comments

Comments
 (0)