Add more traces when failing
This commit is contained in:
parent
fd0354e26f
commit
b065179367
|
@ -51,12 +51,15 @@ public class GceComputeServiceImpl extends AbstractLifecycleComponent<GceCompute
|
||||||
@Override
|
@Override
|
||||||
public Collection<Instance> instances() {
|
public Collection<Instance> instances() {
|
||||||
try {
|
try {
|
||||||
|
logger.debug("get instances for project [{}], zone [{}]", project, zone);
|
||||||
|
|
||||||
Compute.Instances.List list = client().instances().list(project, zone);
|
Compute.Instances.List list = client().instances().list(project, zone);
|
||||||
InstanceList instanceList = list.execute();
|
InstanceList instanceList = list.execute();
|
||||||
|
|
||||||
return instanceList.getItems();
|
return instanceList.getItems();
|
||||||
} catch (IOException e) {
|
} 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<Instance>();
|
return new ArrayList<Instance>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue