Skip to content

Commit dfd75d7

Browse files
authored
api: Fix wrong logger class in *Cmd.java (apache#5740)
This PR changes the incorrect class name used in the logger in ListHypervisorsCmd
1 parent 867ccf6 commit dfd75d7

File tree

36 files changed

+36
-51
lines changed

36 files changed

+36
-51
lines changed

api/src/main/java/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@
1717
package org.apache.cloudstack.api;
1818

1919
import org.apache.log4j.Logger;
20-
import org.apache.cloudstack.api.command.user.iso.UpdateIsoCmd;
2120
import org.apache.cloudstack.api.response.GuestOSResponse;
2221
import org.apache.cloudstack.api.response.TemplateResponse;
2322

2423
import java.util.Collection;
2524
import java.util.Map;
2625

2726
public abstract class BaseUpdateTemplateOrIsoCmd extends BaseCmd {
28-
public static final Logger s_logger = Logger.getLogger(UpdateIsoCmd.class.getName());
27+
public static final Logger s_logger = Logger.getLogger(BaseUpdateTemplateOrIsoCmd.class.getName());
2928

3029
/////////////////////////////////////////////////////
3130
//////////////// API parameters /////////////////////

api/src/main/java/org/apache/cloudstack/api/command/admin/address/ReleasePodIpCmdByAdmin.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@
2424
import org.apache.cloudstack.api.BaseCmd;
2525
import org.apache.cloudstack.api.Parameter;
2626
import org.apache.cloudstack.api.ServerApiException;
27-
import org.apache.cloudstack.api.command.admin.vlan.ReleasePublicIpRangeCmd;
2827
import org.apache.cloudstack.api.response.AcquireIPAddressResponse;
2928
import org.apache.cloudstack.api.response.SuccessResponse;
3029

3130
import com.cloud.user.Account;
3231

3332
@APICommand(name = "releasePodIpAddress", description = "Releases a Pod IP back to the Pod", responseObject = SuccessResponse.class, requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
3433
public class ReleasePodIpCmdByAdmin extends BaseCmd {
35-
public static final Logger s_logger = Logger.getLogger(ReleasePublicIpRangeCmd.class.getName());
34+
public static final Logger s_logger = Logger.getLogger(ReleasePodIpCmdByAdmin.class.getName());
3635

3736
private static final String s_name = "releasepodipresponse";
3837

api/src/main/java/org/apache/cloudstack/api/command/admin/cluster/ListClustersCmd.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.apache.cloudstack.api.ApiConstants;
2626
import org.apache.cloudstack.api.BaseListCmd;
2727
import org.apache.cloudstack.api.Parameter;
28-
import org.apache.cloudstack.api.command.user.offering.ListServiceOfferingsCmd;
2928
import org.apache.cloudstack.api.response.ClusterResponse;
3029
import org.apache.cloudstack.api.response.ListResponse;
3130
import org.apache.cloudstack.api.response.PodResponse;
@@ -37,7 +36,7 @@
3736
@APICommand(name = "listClusters", description = "Lists clusters.", responseObject = ClusterResponse.class,
3837
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
3938
public class ListClustersCmd extends BaseListCmd {
40-
public static final Logger s_logger = Logger.getLogger(ListServiceOfferingsCmd.class.getName());
39+
public static final Logger s_logger = Logger.getLogger(ListClustersCmd.class.getName());
4140

4241
private static final String s_name = "listclustersresponse";
4342

api/src/main/java/org/apache/cloudstack/api/command/admin/router/ListVirtualRouterElementsCmd.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.apache.cloudstack.api.BaseListCmd;
2929
import org.apache.cloudstack.api.Parameter;
3030
import org.apache.cloudstack.api.ServerApiException;
31-
import org.apache.cloudstack.api.command.user.network.ListNetworkOfferingsCmd;
3231
import org.apache.cloudstack.api.response.ListResponse;
3332
import org.apache.cloudstack.api.response.ProviderResponse;
3433
import org.apache.cloudstack.api.response.VirtualRouterProviderResponse;
@@ -43,7 +42,7 @@
4342
@APICommand(name = "listVirtualRouterElements", description = "Lists all available virtual router elements.", responseObject = VirtualRouterProviderResponse.class,
4443
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
4544
public class ListVirtualRouterElementsCmd extends BaseListCmd {
46-
public static final Logger s_logger = Logger.getLogger(ListNetworkOfferingsCmd.class.getName());
45+
public static final Logger s_logger = Logger.getLogger(ListVirtualRouterElementsCmd.class.getName());
4746
private static final String s_name = "listvirtualrouterelementsresponse";
4847

4948
// TODO, VirtualRouterElementServer is not singleton in system!

api/src/main/java/org/apache/cloudstack/api/command/admin/storage/CreateSecondaryStagingStoreCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@APICommand(name = "createSecondaryStagingStore", description = "create secondary staging store.", responseObject = ImageStoreResponse.class,
3939
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
4040
public class CreateSecondaryStagingStoreCmd extends BaseCmd {
41-
public static final Logger s_logger = Logger.getLogger(AddImageStoreCmd.class.getName());
41+
public static final Logger s_logger = Logger.getLogger(CreateSecondaryStagingStoreCmd.class.getName());
4242
private static final String s_name = "createsecondarystagingstoreresponse";
4343

4444
/////////////////////////////////////////////////////

api/src/main/java/org/apache/cloudstack/api/command/admin/systemvm/ScaleSystemVMCmd.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.apache.cloudstack.api.BaseAsyncCmd;
2929
import org.apache.cloudstack.api.Parameter;
3030
import org.apache.cloudstack.api.ServerApiException;
31-
import org.apache.cloudstack.api.command.user.vm.UpgradeVMCmd;
3231
import org.apache.cloudstack.api.response.ServiceOfferingResponse;
3332
import org.apache.cloudstack.api.response.SystemVmResponse;
3433
import org.apache.cloudstack.context.CallContext;
@@ -47,7 +46,7 @@
4746
+ "The system vm must be in a \"Stopped\" state for " + "this command to take effect.", entityType = {VirtualMachine.class},
4847
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
4948
public class ScaleSystemVMCmd extends BaseAsyncCmd {
50-
public static final Logger s_logger = Logger.getLogger(UpgradeVMCmd.class.getName());
49+
public static final Logger s_logger = Logger.getLogger(ScaleSystemVMCmd.class.getName());
5150
private static final String s_name = "changeserviceforsystemvmresponse";
5251

5352
/////////////////////////////////////////////////////

api/src/main/java/org/apache/cloudstack/api/command/admin/systemvm/UpgradeSystemVMCmd.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.apache.cloudstack.api.BaseCmd;
2929
import org.apache.cloudstack.api.Parameter;
3030
import org.apache.cloudstack.api.ServerApiException;
31-
import org.apache.cloudstack.api.command.user.vm.UpgradeVMCmd;
3231
import org.apache.cloudstack.api.response.ServiceOfferingResponse;
3332
import org.apache.cloudstack.api.response.SystemVmResponse;
3433
import org.apache.cloudstack.context.CallContext;
@@ -42,7 +41,7 @@
4241
+ "The system vm must be in a \"Stopped\" state for " + "this command to take effect.", entityType = {VirtualMachine.class},
4342
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
4443
public class UpgradeSystemVMCmd extends BaseCmd {
45-
public static final Logger s_logger = Logger.getLogger(UpgradeVMCmd.class.getName());
44+
public static final Logger s_logger = Logger.getLogger(UpgradeSystemVMCmd.class.getName());
4645
private static final String s_name = "changeserviceforsystemvmresponse";
4746

4847
/////////////////////////////////////////////////////

api/src/main/java/org/apache/cloudstack/api/command/admin/usage/ListTrafficMonitorsCmd.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.apache.cloudstack.api.ApiConstants;
2626
import org.apache.cloudstack.api.BaseListCmd;
2727
import org.apache.cloudstack.api.Parameter;
28-
import org.apache.cloudstack.api.command.user.offering.ListServiceOfferingsCmd;
2928
import org.apache.cloudstack.api.response.ListResponse;
3029
import org.apache.cloudstack.api.response.TrafficMonitorResponse;
3130
import org.apache.cloudstack.api.response.ZoneResponse;
@@ -35,7 +34,7 @@
3534
@APICommand(name = "listTrafficMonitors", description = "List traffic monitor Hosts.", responseObject = TrafficMonitorResponse.class,
3635
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
3736
public class ListTrafficMonitorsCmd extends BaseListCmd {
38-
public static final Logger s_logger = Logger.getLogger(ListServiceOfferingsCmd.class.getName());
37+
public static final Logger s_logger = Logger.getLogger(ListTrafficMonitorsCmd.class.getName());
3938
private static final String s_name = "listtrafficmonitorsresponse";
4039

4140
/////////////////////////////////////////////////////

api/src/main/java/org/apache/cloudstack/api/command/admin/user/GetUserKeysCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class GetUserKeysCmd extends BaseCmd{
4444
@Parameter(name= ApiConstants.ID, type = CommandType.UUID, entityType = UserResponse.class, required = true, description = "ID of the user whose keys are required")
4545
private Long id;
4646

47-
public static final Logger s_logger = Logger.getLogger(RegisterCmd.class.getName());
47+
public static final Logger s_logger = Logger.getLogger(GetUserKeysCmd.class.getName());
4848
public static final String APINAME = "getUserKeys";
4949

5050
public Long getID(){

api/src/main/java/org/apache/cloudstack/api/command/admin/user/MoveUserCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
since = "4.11",
4545
authorized = {RoleType.Admin})
4646
public class MoveUserCmd extends BaseCmd {
47-
public static final Logger s_logger = Logger.getLogger(UpdateUserCmd.class.getName());
47+
public static final Logger s_logger = Logger.getLogger(MoveUserCmd.class.getName());
4848

4949
public static final String APINAME = "moveUser";
5050

0 commit comments

Comments
 (0)