SOLR-11795: avoid using static class name for logger

This commit is contained in:
koji 2018-02-20 23:29:28 +09:00
parent cc1efdb4a3
commit a31a8dae2e
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ import java.util.concurrent.TimeUnit;
* SolrCollector
*/
public class SolrCollector extends Collector implements Collector.Describable {
private static final Logger logger = LoggerFactory.getLogger(SolrCollector.class);
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
private SolrClient solrClient;
private SolrCollectorConfig config = new SolrCollectorConfig();

View File

@ -49,7 +49,7 @@ import java.util.regex.Pattern;
* SolrExporter
*/
public class SolrExporter {
private static final Logger logger = LoggerFactory.getLogger(SolrExporter.class);
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
private static final String[] ARG_PORT_FLAGS = { "-p", "--port" };
private static final String ARG_PORT_METAVAR = "PORT";

View File

@ -46,7 +46,7 @@ import java.util.concurrent.Callable;
* SolrScraper
*/
public class SolrScraper implements Callable<Map<String, Collector.MetricFamilySamples>> {
private static final Logger logger = LoggerFactory.getLogger(SolrScraper.class);
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
private SolrClient solrClient;
private SolrScraperConfig scraperConfig;