diff --git a/src/main/java/org/elasticsearch/cloud/gce/GceComputeServiceImpl.java b/src/main/java/org/elasticsearch/cloud/gce/GceComputeServiceImpl.java index 121fb5a368d..44f2cbc0c6b 100644 --- a/src/main/java/org/elasticsearch/cloud/gce/GceComputeServiceImpl.java +++ b/src/main/java/org/elasticsearch/cloud/gce/GceComputeServiceImpl.java @@ -51,12 +51,15 @@ public class GceComputeServiceImpl extends AbstractLifecycleComponent instances() { try { + logger.debug("get instances for project [{}], zone [{}]", project, zone); + Compute.Instances.List list = client().instances().list(project, zone); InstanceList instanceList = list.execute(); return instanceList.getItems(); } catch (IOException e) { - logger.warn("can not get list of nodes. Disabling GCE discovery."); + logger.warn("disabling GCE discovery. Can not get list of nodes: {}", e.getMessage()); + logger.debug("Full exception:", e); return new ArrayList(); } }