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 f41c934c94a Fix build error with MigrateKVMAsync
f41c934c94a is described below
commit f41c934c94ad50e0bb3e51c26e52ac78196acd69
Author: Wei Zhou <[email protected]>
AuthorDate: Mon Apr 29 12:33:23 2024 +0200
Fix build error with MigrateKVMAsync
---
.../main/java/com/cloud/hypervisor/kvm/resource/MigrateKVMAsync.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/MigrateKVMAsync.java
b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/MigrateKVMAsync.java
index bc94bb47ed8..ae8d06a1986 100644
---
a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/MigrateKVMAsync.java
+++
b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/MigrateKVMAsync.java
@@ -22,7 +22,8 @@ import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.Callable;
-import org.apache.log4j.Logger;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
import org.libvirt.Connect;
import org.libvirt.Domain;
import org.libvirt.LibvirtException;
@@ -31,7 +32,7 @@ import org.libvirt.TypedStringParameter;
import org.libvirt.TypedUlongParameter;
public class MigrateKVMAsync implements Callable<Domain> {
- protected Logger logger = Logger.getLogger(getClass());
+ protected Logger logger = LogManager.getLogger(getClass());
private final LibvirtComputingResource libvirtComputingResource;