Updated Branches: refs/heads/master 36c403a7f -> 769e0af56
adding some logs to service utils Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/769e0af5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/769e0af5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/769e0af5 Branch: refs/heads/master Commit: 769e0af5679280d5eba04e4a8c4ac2e6ca7c1ff8 Parents: 36c403a Author: Nirmal Fernando <[email protected]> Authored: Thu Dec 12 09:58:31 2013 +0530 Committer: Nirmal Fernando <[email protected]> Committed: Thu Dec 12 09:59:00 2013 +0530 ---------------------------------------------------------------------- .../stratos/rest/endpoint/services/ServiceUtils.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/769e0af5/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java index 82ca3fc..d206906 100644 --- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java +++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java @@ -62,7 +62,7 @@ public class ServiceUtils { static void deployCartridge (CartridgeDefinitionBean cartridgeDefinitionBean, ConfigurationContext ctxt, String userName, String tenantDomain) throws RestAPIException { - log.info("***** " + cartridgeDefinitionBean.toString() + " *****"); + log.info("Starting to deploy a Cartridge [type] "+cartridgeDefinitionBean.type); CloudControllerServiceClient cloudControllerServiceClient = getCloudControllerServiceClient(); @@ -79,6 +79,8 @@ public class ServiceUtils { // call CC cloudControllerServiceClient.deployCartridgeDefinition(cartridgeConfig); + log.info("Successfully deployed Cartridge [type] "+cartridgeDefinitionBean.type); + } catch (Exception e) { throw new RestAPIException(e); } @@ -865,6 +867,9 @@ public class ServiceUtils { ConfigurationContext configurationContext, String userName, String tenantDomain, Property[] props) throws ADCException { try { + if(log.isDebugEnabled()) { + log.debug("Subscribing to a load balancer [cartridge] "+cartridgeType+" [alias] "+lbAlias); + } CartridgeSubscription cartridgeSubscription = cartridgeSubsciptionManager.subscribeToCartridgeWithProperties(cartridgeType, lbAlias.trim(), defaultAutoscalingPolicy, deploymentPolicy ,tenantDomain, @@ -872,6 +877,10 @@ public class ServiceUtils { userName, "git", null, false, null, null, props); cartridgeSubsciptionManager.registerCartridgeSubscription(cartridgeSubscription); + + if(log.isDebugEnabled()) { + log.debug("Successfully subscribed to a load balancer [cartridge] "+cartridgeType+" [alias] "+lbAlias); + } } catch (Exception e) { String msg = "Error while subscribing to load balancer cartridge [type] "+cartridgeType; log.error(msg, e);
