mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Logging variable name change
This commit is contained in:
parent
586fa7eeaf
commit
c45b83a158
@ -49,7 +49,7 @@ import java.util.List;
|
||||
authorized = {RoleType.Admin})
|
||||
public class ImportVsphereStoragePoliciesCmd extends BaseCmd {
|
||||
|
||||
public static final Logger s_logger = Logger.getLogger(ImportVsphereStoragePoliciesCmd.class.getName());
|
||||
public static final Logger LOGGER = Logger.getLogger(ImportVsphereStoragePoliciesCmd.class.getName());
|
||||
|
||||
public static final String APINAME = "importVsphereStoragePolicies";
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ import java.util.List;
|
||||
authorized = {RoleType.Admin})
|
||||
public class ListVsphereStoragePoliciesCmd extends BaseCmd {
|
||||
|
||||
public static final Logger s_logger = Logger.getLogger(ListVsphereStoragePoliciesCmd.class.getName());
|
||||
public static final Logger LOGGER = Logger.getLogger(ListVsphereStoragePoliciesCmd.class.getName());
|
||||
|
||||
public static final String APINAME = "listVsphereStoragePolicies";
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ import java.util.List;
|
||||
|
||||
public class PbmPlacementSolverMO extends BaseMO {
|
||||
|
||||
private static final Logger s_logger = Logger.getLogger(PbmPlacementSolverMO.class);
|
||||
private static final Logger LOGGER = Logger.getLogger(PbmPlacementSolverMO.class);
|
||||
|
||||
public PbmPlacementSolverMO (VmwareContext context) {
|
||||
super(context, context.getPbmServiceContent().getPlacementSolver());
|
||||
|
||||
@ -35,7 +35,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
public class PbmProfileManagerMO extends BaseMO {
|
||||
|
||||
private static final Logger s_logger = Logger.getLogger(PbmProfileManagerMO.class);
|
||||
private static final Logger LOGGER = Logger.getLogger(PbmProfileManagerMO.class);
|
||||
|
||||
public PbmProfileManagerMO (VmwareContext context) {
|
||||
super(context, context.getPbmServiceContent().getProfileManager());
|
||||
@ -50,8 +50,8 @@ public class PbmProfileManagerMO extends BaseMO {
|
||||
}
|
||||
|
||||
public List<PbmProfileId> getStorageProfileIds() throws Exception {
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("Querying vCenter " + _context.getServerAddress() + " for profiles");
|
||||
if (LOGGER.isDebugEnabled()) {
|
||||
LOGGER.debug("Querying vCenter " + _context.getServerAddress() + " for profiles");
|
||||
}
|
||||
List<PbmProfileId> profileIds = _context.getPbmService().pbmQueryProfile(_mor, getStorageResourceType(), null);
|
||||
return profileIds;
|
||||
@ -76,7 +76,7 @@ public class PbmProfileManagerMO extends BaseMO {
|
||||
|
||||
if (profileId == null) {
|
||||
String errMsg = String.format("Storage profile with id %s not found", storageProfileId);
|
||||
s_logger.debug(errMsg);
|
||||
LOGGER.debug(errMsg);
|
||||
throw new CloudRuntimeException(errMsg);
|
||||
}
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ import com.cloud.hypervisor.vmware.util.VmwareContext;
|
||||
|
||||
public class VirtualStorageObjectManagerMO extends BaseMO {
|
||||
@SuppressWarnings("unused")
|
||||
private static final Logger s_logger = Logger.getLogger(VirtualStorageObjectManagerMO.class);
|
||||
private static final Logger LOGGER = Logger.getLogger(VirtualStorageObjectManagerMO.class);
|
||||
|
||||
public VirtualStorageObjectManagerMO(VmwareContext context) {
|
||||
super(context, context.getServiceContent().getVStorageObjectManager());
|
||||
@ -86,7 +86,7 @@ public class VirtualStorageObjectManagerMO extends BaseMO {
|
||||
vStorageObject = (VStorageObject)taskInfo.getResult();
|
||||
|
||||
} else {
|
||||
s_logger.error("VMware CreateDisk_Task failed due to " + TaskMO.getTaskFailureInfo(_context, morTask));
|
||||
LOGGER.error("VMware CreateDisk_Task failed due to " + TaskMO.getTaskFailureInfo(_context, morTask));
|
||||
}
|
||||
|
||||
return vStorageObject;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user