Skip to content

Commit 91ab67c

Browse files
winterhazelhsato03
andauthored
Add logs to VMware instance configuration process (#9080)
Co-authored-by: Henrique Sato <[email protected]>
1 parent f75a194 commit 91ab67c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ public boolean setVncConfigInfo(boolean enableVnc, String vncPassword, int vncPo
11851185
}
11861186

11871187
public boolean configureVm(VirtualMachineConfigSpec vmConfigSpec) throws Exception {
1188+
logger.debug("Reconfiguring virtual machine {} using spec {}.", this, GSON.toJson(vmConfigSpec));
11881189
ManagedObjectReference morTask = _context.getService().reconfigVMTask(_mor, vmConfigSpec);
11891190

11901191
boolean result = _context.getVimClient().waitForTask(morTask);
@@ -3841,4 +3842,9 @@ public void removeChangeTrackPathFromVmdkForDisks() throws Exception {
38413842
logger.info("Removed property ChangeTrackPath from VMDK content file " + diskBackingInfo.getFileName());
38423843
}
38433844
}
3845+
3846+
@Override
3847+
public String toString() {
3848+
return ReflectionToStringBuilderUtils.reflectOnlySelectedFields(this, "internalCSName");
3849+
}
38443850
}

0 commit comments

Comments
 (0)