diff --git a/src/test/java/org/elasticsearch/rest/action/admin/indices/upgrade/UpgradeTest.java b/src/test/java/org/elasticsearch/rest/action/admin/indices/upgrade/UpgradeTest.java index 1ea9a944bb0..05cf4f0484e 100644 --- a/src/test/java/org/elasticsearch/rest/action/admin/indices/upgrade/UpgradeTest.java +++ b/src/test/java/org/elasticsearch/rest/action/admin/indices/upgrade/UpgradeTest.java @@ -65,7 +65,6 @@ public class UpgradeTest extends ElasticsearchBackwardsCompatIntegrationTest { } public void testUpgrade() throws Exception { - Loggers.getLogger(UpgradeTest.class).setLevel("DEBUG"); int numIndexes = randomIntBetween(2, 4); String[] indexNames = new String[numIndexes]; @@ -152,12 +151,7 @@ public class UpgradeTest extends ElasticsearchBackwardsCompatIntegrationTest { logSegmentsState(null); assertUpgraded(httpClient, null); } - - @After - void restLogLevel() { - Loggers.getLogger(UpgradeTest.class).setLevel("INFO"); - } - + void logSegmentsState(String index) throws Exception { // double check using the segments api that all segments are actually upgraded IndicesSegmentResponse segsRsp;