From 3ff54c0b5c40c1767387b3bd6b59e0319b6a53c9 Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Sat, 10 Nov 2012 11:40:32 -0500 Subject: [PATCH] Add logging for environment paths on startup --- .../org/elasticsearch/node/internal/InternalNode.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/elasticsearch/node/internal/InternalNode.java b/src/main/java/org/elasticsearch/node/internal/InternalNode.java index f7d882d1dc0..70be6056b10 100644 --- a/src/main/java/org/elasticsearch/node/internal/InternalNode.java +++ b/src/main/java/org/elasticsearch/node/internal/InternalNode.java @@ -88,6 +88,7 @@ import org.elasticsearch.threadpool.ThreadPoolModule; import org.elasticsearch.transport.TransportModule; import org.elasticsearch.transport.TransportService; +import java.util.Arrays; import java.util.concurrent.TimeUnit; /** @@ -117,6 +118,13 @@ public final class InternalNode implements Node { ESLogger logger = Loggers.getLogger(Node.class, tuple.v1().get("name")); logger.info("{{}}[{}]: initializing ...", Version.CURRENT, JvmInfo.jvmInfo().pid()); + if (logger.isDebugEnabled()) { + Environment env = tuple.v2(); + logger.debug("using home [{}], config [{}], data [{}], logs [{}], work [{}], plugins [{}]", + env.homeFile(), env.configFile(), Arrays.toString(env.dataFiles()), env.logsFile(), + env.workFile(), env.pluginsFile()); + } + this.pluginsService = new PluginsService(tuple.v1(), tuple.v2()); this.settings = pluginsService.updatedSettings(); this.environment = tuple.v2();