adding error log instead of info log
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/1089dedc Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/1089dedc Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/1089dedc Branch: refs/heads/tenantisolation Commit: 1089dedc6c9da007849ae206de20c5b31cd38cf8 Parents: b91b86c Author: reka <[email protected]> Authored: Thu Jun 25 19:28:34 2015 +0530 Committer: reka <[email protected]> Committed: Thu Jun 25 19:28:34 2015 +0530 ---------------------------------------------------------------------- .../org/apache/stratos/rest/endpoint/api/StratosApiV41.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/1089dedc/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java index 9712980..fa369f5 100644 --- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java +++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java @@ -1240,15 +1240,15 @@ public class StratosApiV41 extends AbstractApi { ApplicationBean applicationDefinition = StratosApiV41Utils.getApplication(applicationId); if (applicationDefinition == null) { - String msg = String.format("Application does not exist [application-id] %s", applicationId); - log.info(msg); + String message = String.format("Application does not exist [application-id] %s", applicationId); + log.error(message); return Response.status(Response.Status.NOT_FOUND).entity(new ResponseMessageBean( - ResponseMessageBean.ERROR, msg)).build(); + ResponseMessageBean.ERROR, message)).build(); } if (applicationDefinition.getStatus().equalsIgnoreCase(StratosApiV41Utils.APPLICATION_STATUS_CREATED)) { String message = String.format("Could not undeploy since application is not in DEPLOYED status " + "[application-id] %s [current status] %S", applicationId, applicationDefinition.getStatus()); - log.info(message); + log.error(message); return Response.status(Response.Status.CONFLICT).entity(new ResponseMessageBean( ResponseMessageBean.ERROR, message)).build(); }
