diff --git a/qa/rolling-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/SemanticSearch.java b/qa/rolling-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/SemanticSearch.java index 782efc2f2..d803f62cb 100644 --- a/qa/rolling-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/SemanticSearch.java +++ b/qa/rolling-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/SemanticSearch.java @@ -9,13 +9,11 @@ import java.nio.file.Files; import java.nio.file.Path; import java.util.Map; -import lombok.extern.log4j.Log4j2; import org.opensearch.neuralsearch.TestUtils; import static org.opensearch.neuralsearch.TestUtils.NODES_BWC_CLUSTER; import static org.opensearch.neuralsearch.TestUtils.TEXT_EMBEDDING_PROCESSOR; import org.opensearch.neuralsearch.query.NeuralQueryBuilder; -@Log4j2 public class SemanticSearch extends AbstractRollingUpgradeTestCase{ private static final String PIPELINE_NAME = "nlp-pipeline"; private static final String TEST_FIELD = "test-field"; @@ -25,7 +23,7 @@ public class SemanticSearch extends AbstractRollingUpgradeTestCase{ private static final int NUM_DOCS = 1; public void testSemanticSearch() throws Exception{ - log.info("Get Cluster Type=========================="+getClusterType()); + logger.info("Get Cluster Type=========================="+getClusterType()); getIndices(); getShards(); waitForClusterHealthGreen(NODES_BWC_CLUSTER); diff --git a/src/testFixtures/java/org/opensearch/neuralsearch/BaseNeuralSearchIT.java b/src/testFixtures/java/org/opensearch/neuralsearch/BaseNeuralSearchIT.java index 63e2888d7..08b584b33 100644 --- a/src/testFixtures/java/org/opensearch/neuralsearch/BaseNeuralSearchIT.java +++ b/src/testFixtures/java/org/opensearch/neuralsearch/BaseNeuralSearchIT.java @@ -54,10 +54,8 @@ import lombok.AllArgsConstructor; import lombok.Getter; import lombok.SneakyThrows; -import lombok.extern.log4j.Log4j2; @ThreadLeakScope(ThreadLeakScope.Scope.NONE) -@Log4j2 public abstract class BaseNeuralSearchIT extends OpenSearchSecureRestTestCase { protected static final Locale LOCALE = Locale.ROOT; @@ -860,8 +858,8 @@ protected void getIndices() { Request request = new Request("GET", "/_cat/indices"); Response response = client().performRequest(request); String responseBody = EntityUtils.toString(response.getEntity()); - log.info("Indices are ============================"); - log.info(responseBody); + logger.info("Indices are ============================"); + logger.info(responseBody); } @SneakyThrows @@ -869,8 +867,8 @@ protected void getShards() { Request request = new Request("GET", "/_cat/shards"); Response response = client().performRequest(request); String responseBody = EntityUtils.toString(response.getEntity()); - log.info("Shards are ============================"); - log.info(responseBody); + logger.info("Shards are ============================"); + logger.info(responseBody); } /**