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()); } } }