diff --git a/server/src/main/java/com/defold/extender/services/GCPInstanceService.java b/server/src/main/java/com/defold/extender/services/GCPInstanceService.java index b0f848b6..dc7545ed 100644 --- a/server/src/main/java/com/defold/extender/services/GCPInstanceService.java +++ b/server/src/main/java/com/defold/extender/services/GCPInstanceService.java @@ -48,6 +48,7 @@ public GCPInstanceService(RemoteHostConfiguration remoteHostConfiguration) throw } private void suspendInstance(final String instanceId) throws InterruptedException, ExecutionException, TimeoutException { + LOGGER.info(String.format("Try suspend VM '%s'", instanceId)); int attemptCount = 0; while (true) { Operation response = instancesClient.suspendAsync(projectId, computeZone, instanceId).get(operationWaitTimeout, TimeUnit.MILLISECONDS); @@ -65,7 +66,8 @@ private void suspendInstance(final String instanceId) throws InterruptedExceptio } } - public void resumeInstance(String instanceId) throws InterruptedException, ExecutionException, TimeoutException { + private void resumeInstance(String instanceId) throws InterruptedException, ExecutionException, TimeoutException { + LOGGER.info(String.format("Try resume VM '%s'", instanceId)); int attemptCount = 0; while (true) { Operation response = instancesClient.resumeAsync(projectId, computeZone, instanceId).get(operationWaitTimeout, TimeUnit.MILLISECONDS); @@ -119,7 +121,6 @@ public void checkInstancesState() { } catch(ExecutionException exc) { LOGGER.error(String.format("Suspend '%s' failed.", entry.getKey()), exc); } - } } }