From edd890264e5eb0e816945ffe01a9b7a8f784ab81 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Tue, 13 Feb 2024 06:59:56 -0600 Subject: [PATCH] More logging information Signed-off-by: Peter Nied --- .../src/main/java/org/opensearch/test/OpenSearchTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/framework/src/main/java/org/opensearch/test/OpenSearchTestCase.java b/test/framework/src/main/java/org/opensearch/test/OpenSearchTestCase.java index 96bffcf2d3692..0efd4d79a857a 100644 --- a/test/framework/src/main/java/org/opensearch/test/OpenSearchTestCase.java +++ b/test/framework/src/main/java/org/opensearch/test/OpenSearchTestCase.java @@ -639,7 +639,7 @@ protected static void checkStaticState(boolean afterClass) throws Exception { try { // ensure that there are no status logger messages which would indicate a problem with our Log4j usage; we map the // StatusData instances to Strings as otherwise their toString output is useless - assertThat( + assertThat(statusData.stream().map(status -> status.getLevel() + ": " + status.getMessage() + (status.getThrowable() == null ? "" : "\r\n\r\nTrowable:\r\n" + status.getThrowable().toString())).collect(Collectors.joining("\r\n")), statusData.stream().map(status -> status.getMessage().getFormattedMessage()).collect(Collectors.toList()), empty() );