[Tests] add a debug logging message when starting an external node

This commit is contained in:
Boaz Leskes 2014-08-28 12:12:43 +02:00
parent 6de18262dd
commit c6090e5d9b

View File

@ -25,6 +25,8 @@ import org.elasticsearch.action.admin.cluster.node.info.NodesInfoResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.cluster.ClusterName;
import org.elasticsearch.common.logging.ESLogger;
import org.elasticsearch.common.logging.Loggers;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.transport.TransportAddress;
@ -53,6 +55,9 @@ final class ExternalNode implements Closeable {
private final String clusterName;
private TransportClient client;
private final ESLogger logger = Loggers.getLogger(getClass());
ExternalNode(File path, long seed, SettingsSource settingsSource) {
this(path, null, seed, settingsSource);
}
@ -109,6 +114,7 @@ final class ExternalNode implements Closeable {
builder.inheritIO();
boolean success = false;
try {
logger.debug("starting external node [{}] with: {}", nodeName, builder.command());
process = builder.start();
this.nodeInfo = null;
if (waitForNode(client, nodeName)) {