Skip to content

Commit

Permalink
Pretty print hostNames array.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Everton committed Jun 21, 2011
1 parent ff39795 commit a855cb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/elasticsearch/flume/ElasticSearchSink.java
Expand Up @@ -6,6 +6,7 @@
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -134,7 +135,7 @@ public void open() throws IOException, InterruptedException {
node = nodeBuilder().client(true).clusterName(clusterName).local(localOnly).node();
client = node.client();
} else {
LOG.info("Using provided ES hostnames: " + hostNames.length);
LOG.info("Using provided ES hostnames: " + Arrays.toString(hostNames));
TransportClient transportClient = new TransportClient();
for (String esHostName : hostNames) {
LOG.info("Adding TransportClient: " + esHostName);
Expand Down

0 comments on commit a855cb1

Please sign in to comment.