From df6bafdfe25e013a0c736b9b26cc8273229263b2 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 21 Jun 2024 17:39:39 +0800 Subject: [PATCH] change log level to error (#339) (#340) (cherry picked from commit 4039bf7790dece12ba96037c4e8859a8e1275417) Signed-off-by: zane-neo Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- src/test/java/org/opensearch/integTest/BaseAgentToolsIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/opensearch/integTest/BaseAgentToolsIT.java b/src/test/java/org/opensearch/integTest/BaseAgentToolsIT.java index d24afd04..658a3fc7 100644 --- a/src/test/java/org/opensearch/integTest/BaseAgentToolsIT.java +++ b/src/test/java/org/opensearch/integTest/BaseAgentToolsIT.java @@ -189,7 +189,7 @@ protected Map waitResponseMeetingCondition( if (condition.test(responseInMap)) { return responseInMap; } - logger.info("The " + i + "-th response: " + responseInMap.toString()); + logger.error(String.format(Locale.ROOT, "The %s-th response: %s", i, responseInMap.toString())); Thread.sleep(DEFAULT_TASK_RESULT_QUERY_INTERVAL_IN_MILLISECOND); } fail("The response failed to meet condition after " + MAX_TASK_RESULT_QUERY_TIME_IN_SECOND + " seconds.");