fixing minor log issues
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/19273e1d Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/19273e1d Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/19273e1d Branch: refs/heads/grouping Commit: 19273e1d596f0c294b65968c0841a4ded60916da Parents: 05669cc Author: Udara Liyanage <[email protected]> Authored: Tue Jul 8 15:31:57 2014 +0530 Committer: Udara Liyanage <[email protected]> Committed: Tue Jul 8 15:31:57 2014 +0530 ---------------------------------------------------------------------- .../apache/stratos/rest/endpoint/services/ServiceUtils.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/19273e1d/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 b357eed..879370b 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 @@ -222,8 +222,7 @@ public class ServiceUtils { if (cloudControllerServiceClient != null) { // call CC try { - cloudControllerServiceClient - .deployCompositeApplicationDefinition(appConfig); + cloudControllerServiceClient.deployCompositeApplicationDefinition(appConfig); } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); @@ -244,12 +243,12 @@ public class ServiceUtils { throw new RestAPIException(message, e); } - log.info("Successfully composite application to cloud controller"); + log.info("Successfully deployed composite application to Cloud Controller"); } StratosAdminResponse stratosAdminResponse = new StratosAdminResponse(); - stratosAdminResponse.setMessage("Successfully composite application to cloud controller"); + stratosAdminResponse.setMessage("Successfully deployed composite application to cloud controller"); return stratosAdminResponse; } @@ -307,7 +306,7 @@ public class ServiceUtils { } } - log.info("l [type] " + configCompositeApplicationAlias); + log.info(String.format("[type] %s", configCompositeApplicationAlias)); StratosAdminResponse stratosAdminResponse = new StratosAdminResponse(); stratosAdminResponse.setMessage("Successfully un-deployed application with alias " + configCompositeApplicationAlias);
