DaanHoogland commented on code in PR #9330: URL: https://github.com/apache/cloudstack/pull/9330#discussion_r1663871850
########## plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtCheckConvertInstanceCommandWrapper.java: ########## @@ -18,33 +18,33 @@ // package com.cloud.hypervisor.kvm.resource.wrapper; -import org.apache.log4j.Logger; - import com.cloud.agent.api.Answer; import com.cloud.agent.api.CheckConvertInstanceAnswer; import com.cloud.agent.api.CheckConvertInstanceCommand; import com.cloud.hypervisor.kvm.resource.LibvirtComputingResource; import com.cloud.resource.CommandWrapper; import com.cloud.resource.ResourceWrapper; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; @ResourceWrapper(handles = CheckConvertInstanceCommand.class) public class LibvirtCheckConvertInstanceCommandWrapper extends CommandWrapper<CheckConvertInstanceCommand, Answer, LibvirtComputingResource> { - private static final Logger s_logger = Logger.getLogger(LibvirtCheckConvertInstanceCommandWrapper.class); + protected Logger LOGGER = LogManager.getLogger(getClass()); Review Comment: either ```suggestion protected static final Logger LOGGER = LogManager.getLogger(getClass()); ``` or ```suggestion protected Logger logger = LogManager.getLogger(getClass()); ``` I would say ########## plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtPrepareStorageClientCommandWrapper.java: ########## @@ -31,19 +29,21 @@ import com.cloud.resource.CommandWrapper; import com.cloud.resource.ResourceWrapper; import com.cloud.utils.Ternary; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; @ResourceWrapper(handles = PrepareStorageClientCommand.class) public class LibvirtPrepareStorageClientCommandWrapper extends CommandWrapper<PrepareStorageClientCommand, Answer, LibvirtComputingResource> { - private static final Logger s_logger = Logger.getLogger(LibvirtPrepareStorageClientCommandWrapper.class); + protected Logger LOGGER = LogManager.getLogger(getClass()); Review Comment: same here (static upper of instance lowercase) ########## plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtUnprepareStorageClientCommandWrapper.java: ########## @@ -29,19 +27,21 @@ import com.cloud.resource.CommandWrapper; import com.cloud.resource.ResourceWrapper; import com.cloud.utils.Pair; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; @ResourceWrapper(handles = UnprepareStorageClientCommand.class) public class LibvirtUnprepareStorageClientCommandWrapper extends CommandWrapper<UnprepareStorageClientCommand, Answer, LibvirtComputingResource> { - private static final Logger s_logger = Logger.getLogger(LibvirtUnprepareStorageClientCommandWrapper.class); + protected Logger LOGGER = LogManager.getLogger(getClass()); Review Comment: case -- 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: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org