Skip to content

Commit cb48202

Browse files
committed
fix build error LibvirtGetVolumeStatCommandWrapper
1 parent 6fe835e commit cb48202

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetVolumeStatCommandWrapper.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
package com.cloud.hypervisor.kvm.resource.wrapper;
2121

22-
import org.apache.log4j.Logger;
23-
2422
import com.cloud.agent.api.Answer;
2523
import com.cloud.agent.api.GetVolumeStatAnswer;
2624
import com.cloud.agent.api.GetVolumeStatCommand;
@@ -35,7 +33,6 @@
3533

3634
@ResourceWrapper(handles = GetVolumeStatCommand.class)
3735
public final class LibvirtGetVolumeStatCommandWrapper extends CommandWrapper<GetVolumeStatCommand, Answer, LibvirtComputingResource> {
38-
private static final Logger s_logger = Logger.getLogger(LibvirtGetVolumeStatCommandWrapper.class);
3936

4037
@Override
4138
public Answer execute(final GetVolumeStatCommand cmd, final LibvirtComputingResource libvirtComputingResource) {
@@ -59,7 +56,7 @@ public Answer execute(final GetVolumeStatCommand cmd, final LibvirtComputingReso
5956

6057
return new GetVolumeStatAnswer(cmd, disk.getSize(), disk.getVirtualSize());
6158
} catch (CloudRuntimeException e) {
62-
s_logger.error("Can't get volume stats, due to: " + e.getMessage(), e);
59+
logger.error("Can't get volume stats, due to: " + e.getMessage(), e);
6360
return new GetVolumeStatAnswer(cmd, false, "Can't get volume stats, due to: " + e.getMessage());
6461
}
6562
}

0 commit comments

Comments
 (0)