Skip to content

Commit

Permalink
Added logger
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <[email protected]>
  • Loading branch information
shiv0408 committed Mar 13, 2024
1 parent 0b65ebc commit e687302
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
import org.opensearch.client.Request;
import org.opensearch.client.Response;

public class ClusterStateIT extends AbstractRollingTestCase{
import java.util.logging.LogManager;
import java.util.logging.Logger;

public class ClusterStateIT extends AbstractRollingTestCase{
private static final Logger logger = LogManager.getLogManager().getLogger("TESSTTTTT");
public void testTemplateMetadataUpgrades() throws Exception {
if (CLUSTER_TYPE == ClusterType.OLD) {
String templateName = "my_template";
Expand All @@ -29,6 +32,6 @@ private static void verifyTemplateMetadataInClusterState() throws Exception {
Request request = new Request("GET", "_cluster/state/metadata");
Response response = client().performRequest(request);

System.out.println(response.toString());
logger.info(response.toString());
}
}

0 comments on commit e687302

Please sign in to comment.