From 747fd38411532b6bd7c8d1ffe648e0f57a1faafd Mon Sep 17 00:00:00 2001 From: Valdis Rigdon Date: Tue, 8 Jul 2014 08:53:18 -0400 Subject: [PATCH] [Test] BackgroundIndexer uses the wrong logger Closes #6781 --- src/test/java/org/elasticsearch/test/BackgroundIndexer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/test/BackgroundIndexer.java b/src/test/java/org/elasticsearch/test/BackgroundIndexer.java index 3326cb8d167..29184b89768 100644 --- a/src/test/java/org/elasticsearch/test/BackgroundIndexer.java +++ b/src/test/java/org/elasticsearch/test/BackgroundIndexer.java @@ -25,7 +25,6 @@ import org.elasticsearch.action.bulk.BulkResponse; import org.elasticsearch.client.Client; import org.elasticsearch.common.logging.ESLogger; import org.elasticsearch.common.logging.Loggers; -import org.elasticsearch.recovery.RecoveryWhileUnderLoadTests; import org.junit.Assert; import java.util.concurrent.CopyOnWriteArrayList; @@ -40,7 +39,7 @@ import static org.hamcrest.Matchers.equalTo; public class BackgroundIndexer implements AutoCloseable { - private final ESLogger logger = Loggers.getLogger(RecoveryWhileUnderLoadTests.class); + private final ESLogger logger = Loggers.getLogger(getClass()); final Thread[] writers; final CountDownLatch stopLatch;