sureshanaparti commented on a change in pull request #5353:
URL: https://github.com/apache/cloudstack/pull/5353#discussion_r693894313



##########
File path: 
plugins/hypervisors/vmware/src/main/java/com/cloud/storage/resource/VmwareStorageProcessor.java
##########
@@ -1860,11 +1863,13 @@ public Answer createTemplateFromSnapshot(CopyCommand 
cmd) {
                 }
                 vmMo = clonedVm;
             }
+            s_logger.debug(String.format("Exporting volume to export path 
[%s], with VM config [%s].", exportPath, _gson.toJson(vmMo)));
             vmMo.exportVm(exportPath, exportName, false, false);
 
             return new Pair<>(diskDevice, disks);
         } finally {
             if (clonedVm != null) {
+                s_logger.debug(String.format("Detaching all VM [%s] disks and 
destroying it.", _gson.toJson(clonedVm)));

Review comment:
       detaching disks and destroy VM logged multiple times, can add these to a 
private method with log , detach disks + destroy VM ? or  add log to 
VirtualMachineMO, which covers all method calls. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to