From 220275e6b0edc0e478c092e5ce64cf16a1d8468e Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Wed, 27 Jun 2012 11:38:18 +0200 Subject: [PATCH] log when an instance is not added because of its state --- .../elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java b/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java index 9616d4a5429..014c0d840cb 100644 --- a/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java +++ b/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java @@ -181,6 +181,8 @@ public class AwsEc2UnicastHostsProvider extends AbstractComponent implements Uni } else { logger.trace("not adding {}, address is null, host_type {}", instance.getInstanceId(), hostType); } + } else { + logger.trace("not adding {}, state {} is not pending or running", instance.getInstanceId(), state.getName()); } } }