This is an automated email from the ASF dual-hosted git repository.

weizhou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new cb48202b348 fix build error LibvirtGetVolumeStatCommandWrapper
cb48202b348 is described below

commit cb48202b3483e894d4b80337b61d466b191a0cb2
Author: Wei Zhou <weiz...@apache.org>
AuthorDate: Thu Jun 13 10:43:35 2024 +0200

    fix build error LibvirtGetVolumeStatCommandWrapper
---
 .../kvm/resource/wrapper/LibvirtGetVolumeStatCommandWrapper.java     | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetVolumeStatCommandWrapper.java
 
b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetVolumeStatCommandWrapper.java
index 2a9c886f449..5619fcd9139 100644
--- 
a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetVolumeStatCommandWrapper.java
+++ 
b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetVolumeStatCommandWrapper.java
@@ -19,8 +19,6 @@
 
 package com.cloud.hypervisor.kvm.resource.wrapper;
 
-import org.apache.log4j.Logger;
-
 import com.cloud.agent.api.Answer;
 import com.cloud.agent.api.GetVolumeStatAnswer;
 import com.cloud.agent.api.GetVolumeStatCommand;
@@ -35,7 +33,6 @@ import com.cloud.utils.exception.CloudRuntimeException;
 
 @ResourceWrapper(handles = GetVolumeStatCommand.class)
 public final class LibvirtGetVolumeStatCommandWrapper extends 
CommandWrapper<GetVolumeStatCommand, Answer, LibvirtComputingResource> {
-    private static final Logger s_logger = 
Logger.getLogger(LibvirtGetVolumeStatCommandWrapper.class);
 
     @Override
     public Answer execute(final GetVolumeStatCommand cmd, final 
LibvirtComputingResource libvirtComputingResource) {
@@ -59,7 +56,7 @@ public final class LibvirtGetVolumeStatCommandWrapper extends 
CommandWrapper<Get
 
             return new GetVolumeStatAnswer(cmd, disk.getSize(), 
disk.getVirtualSize());
         } catch (CloudRuntimeException e) {
-            s_logger.error("Can't get volume stats, due to: " + 
e.getMessage(), e);
+            logger.error("Can't get volume stats, due to: " + e.getMessage(), 
e);
             return new GetVolumeStatAnswer(cmd, false, "Can't get volume 
stats, due to: " + e.getMessage());
         }
     }

Reply via email to