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})
|
authorized = {RoleType.Admin})
|
||||||
public class ImportVsphereStoragePoliciesCmd extends BaseCmd {
|
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";
|
public static final String APINAME = "importVsphereStoragePolicies";
|
||||||
|
|
||||||
|
|||||||
@ -48,7 +48,7 @@ import java.util.List;
|
|||||||
authorized = {RoleType.Admin})
|
authorized = {RoleType.Admin})
|
||||||
public class ListVsphereStoragePoliciesCmd extends BaseCmd {
|
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";
|
public static final String APINAME = "listVsphereStoragePolicies";
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ import java.util.List;
|
|||||||
|
|
||||||
public class PbmPlacementSolverMO extends BaseMO {
|
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) {
|
public PbmPlacementSolverMO (VmwareContext context) {
|
||||||
super(context, context.getPbmServiceContent().getPlacementSolver());
|
super(context, context.getPbmServiceContent().getPlacementSolver());
|
||||||
|
|||||||
@ -35,7 +35,7 @@ import java.util.stream.Collectors;
|
|||||||
|
|
||||||
public class PbmProfileManagerMO extends BaseMO {
|
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) {
|
public PbmProfileManagerMO (VmwareContext context) {
|
||||||
super(context, context.getPbmServiceContent().getProfileManager());
|
super(context, context.getPbmServiceContent().getProfileManager());
|
||||||
@ -50,8 +50,8 @@ public class PbmProfileManagerMO extends BaseMO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<PbmProfileId> getStorageProfileIds() throws Exception {
|
public List<PbmProfileId> getStorageProfileIds() throws Exception {
|
||||||
if (s_logger.isDebugEnabled()) {
|
if (LOGGER.isDebugEnabled()) {
|
||||||
s_logger.debug("Querying vCenter " + _context.getServerAddress() + " for profiles");
|
LOGGER.debug("Querying vCenter " + _context.getServerAddress() + " for profiles");
|
||||||
}
|
}
|
||||||
List<PbmProfileId> profileIds = _context.getPbmService().pbmQueryProfile(_mor, getStorageResourceType(), null);
|
List<PbmProfileId> profileIds = _context.getPbmService().pbmQueryProfile(_mor, getStorageResourceType(), null);
|
||||||
return profileIds;
|
return profileIds;
|
||||||
@ -76,7 +76,7 @@ public class PbmProfileManagerMO extends BaseMO {
|
|||||||
|
|
||||||
if (profileId == null) {
|
if (profileId == null) {
|
||||||
String errMsg = String.format("Storage profile with id %s not found", storageProfileId);
|
String errMsg = String.format("Storage profile with id %s not found", storageProfileId);
|
||||||
s_logger.debug(errMsg);
|
LOGGER.debug(errMsg);
|
||||||
throw new CloudRuntimeException(errMsg);
|
throw new CloudRuntimeException(errMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ import com.cloud.hypervisor.vmware.util.VmwareContext;
|
|||||||
|
|
||||||
public class VirtualStorageObjectManagerMO extends BaseMO {
|
public class VirtualStorageObjectManagerMO extends BaseMO {
|
||||||
@SuppressWarnings("unused")
|
@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) {
|
public VirtualStorageObjectManagerMO(VmwareContext context) {
|
||||||
super(context, context.getServiceContent().getVStorageObjectManager());
|
super(context, context.getServiceContent().getVStorageObjectManager());
|
||||||
@ -86,7 +86,7 @@ public class VirtualStorageObjectManagerMO extends BaseMO {
|
|||||||
vStorageObject = (VStorageObject)taskInfo.getResult();
|
vStorageObject = (VStorageObject)taskInfo.getResult();
|
||||||
|
|
||||||
} else {
|
} 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;
|
return vStorageObject;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user