Skip to content
Snippets Groups Projects
Commit e30441cf authored by Jason Tedor's avatar Jason Tedor
Browse files

Elasticsearch 5: Remove unneeded output statements

This commit removes some unnecessary logging statements for the
elasticsearch5 and elasticsearch5-rest bindings.
parent a65dcb76
No related branches found
No related tags found
No related merge requests found
......@@ -93,8 +93,6 @@ public class ElasticsearchClient extends DB {
}
}
}
final String clusterName = settings.get("cluster.name");
System.out.println("Elasticsearch cluster name = " + clusterName);
settings.put("client.transport.sniff", true)
.put("client.transport.ignore_cluster_name", false)
......@@ -102,7 +100,6 @@ public class ElasticsearchClient extends DB {
.put("client.transport.nodes_sampler_interval", "30s");
// Default it to localhost:9300
final String[] nodeList = props.getProperty("es.hosts.list", DEFAULT_REMOTE_HOST).split(",");
System.out.println("Elasticsearch Remote Hosts = " + props.getProperty("es.hosts.list", DEFAULT_REMOTE_HOST));
client = new PreBuiltTransportClient(settings.build());
for (String h : nodeList) {
String[] nodes = h.split(":");
......
......@@ -79,7 +79,6 @@ public class ElasticsearchRestClient extends DB {
final Boolean newdb = Boolean.parseBoolean(props.getProperty("es.newdb", "false"));
final String[] nodeList = props.getProperty("es.hosts.list", DEFAULT_REMOTE_HOST).split(",");
System.out.println("Elasticsearch Remote Hosts = " + props.getProperty("es.hosts.list", DEFAULT_REMOTE_HOST));
final List<HttpHost> esHttpHosts = new ArrayList<>(nodeList.length);
for (String h : nodeList) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment