From 41668f772358473a4742139db41c6167df9dca0f Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 27 Feb 2019 08:29:39 +0000 Subject: [PATCH] Move PeerFinder's logger to the expected package (#39412) Today the abstract `org.elasticsearch.discovery.PeerFinder` uses the logger of its implementation, which in production is in `o.e.cluster.coordination`. This turns out to be confusing and unhelpful, so with this change we move to using the logger that belongs to `PeerFinder`. --- .../src/main/java/org/elasticsearch/discovery/PeerFinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/discovery/PeerFinder.java b/server/src/main/java/org/elasticsearch/discovery/PeerFinder.java index 58248b8183d..32fd59d8a2c 100644 --- a/server/src/main/java/org/elasticsearch/discovery/PeerFinder.java +++ b/server/src/main/java/org/elasticsearch/discovery/PeerFinder.java @@ -69,7 +69,7 @@ import static org.elasticsearch.cluster.coordination.DiscoveryUpgradeService.cre public abstract class PeerFinder { - protected final Logger logger = LogManager.getLogger(getClass()); + private static final Logger logger = LogManager.getLogger(PeerFinder.class); public static final String REQUEST_PEERS_ACTION_NAME = "internal:discovery/request_peers";