X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ONAP-PAP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fpap%2Fxacml%2Frest%2Fpolicycontroller%2FPolicyCreation.java;h=eff4e7f2fd320d755c152c69c1d830bbb5cbfabc;hb=7925630b5edc79119f29392edc6ddc84cf7c3757;hp=80657fcd678c49f4089937b0dabcca02fda74682;hpb=073cc188efe9abb4c010cf674e34e2cf46ef1c52;p=policy%2Fengine.git diff --git a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/policycontroller/PolicyCreation.java b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/policycontroller/PolicyCreation.java index 80657fcd6..eff4e7f2f 100644 --- a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/policycontroller/PolicyCreation.java +++ b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/policycontroller/PolicyCreation.java @@ -512,13 +512,14 @@ public class PolicyCreation extends AbstractPolicyCreation{ response.addHeader("error", "error"); } }catch(Exception e){ + LOGGER.error("Exception Occured : ",e); if(policyDBDaoTransaction != null){ policyDBDaoTransaction.rollbackTransaction(); } } } catch (Exception e){ - LOGGER.error("Exception Occured : "+e); + LOGGER.error("Exception Occured : "+e.getMessage(),e); body = "error"; response.addHeader("error", e.getMessage()); response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);