This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.13
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.13 by this push:
new 8ef10c0 python/c++ formatting in java corrected (#3806)
8ef10c0 is described below
commit 8ef10c0fdd16607973cb2b17eda395a7c3b063a1
Author: dahn <[email protected]>
AuthorDate: Wed Jan 15 15:31:28 2020 +0100
python/c++ formatting in java corrected (#3806)
---
.../main/java/com/cloud/vm/VirtualMachinePowerStateSyncImpl.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/engine/orchestration/src/main/java/com/cloud/vm/VirtualMachinePowerStateSyncImpl.java
b/engine/orchestration/src/main/java/com/cloud/vm/VirtualMachinePowerStateSyncImpl.java
index 14043a0..7ff3f10 100644
---
a/engine/orchestration/src/main/java/com/cloud/vm/VirtualMachinePowerStateSyncImpl.java
+++
b/engine/orchestration/src/main/java/com/cloud/vm/VirtualMachinePowerStateSyncImpl.java
@@ -16,6 +16,7 @@
// under the License.
package com.cloud.vm;
+import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
@@ -137,13 +138,14 @@ public class VirtualMachinePowerStateSyncImpl implements
VirtualMachinePowerStat
}
if (s_logger.isInfoEnabled()) {
+ String lastTime = new
SimpleDateFormat("yyyy/MM/dd'T'HH:mm:ss.SSS'Z'").format(vmStateUpdateTime);
s_logger.info(
- String.format("Detected missing VM. host: %l, vm
id: %l(%s), power state: %s, last state update: %l"
+ String.format("Detected missing VM. host: %d, vm
id: %d(%s), power state: %s, last state update: %s"
, hostId
, instance.getId()
, instance.getUuid()
,
VirtualMachine.PowerState.PowerReportMissing
- , vmStateUpdateTime.getTime()));
+ , lastTime));
}
long milliSecondsSinceLastStateUpdate = currentTime.getTime()
- vmStateUpdateTime.getTime();