aboutsummaryrefslogtreecommitdiffstats
path: root/ONAP-PAP-REST/src
diff options
context:
space:
mode:
authorMike Babinski <mb1915@att.com>2017-12-08 00:02:50 +0000
committerMike Babinski <mb1915@att.com>2017-12-12 16:44:02 +0000
commitf799af84c1777d1b56641c758bdf6064b494d71d (patch)
tree24bc488408fae831271e08fb220b1a3b40e78327 /ONAP-PAP-REST/src
parent775f45908025e46a40c9c147fca2066af5c8c5b8 (diff)
Fix audit log to contain ending timestamp
Add transaction end method Change-Id: Ie818bb1650b0847800ce5481a85c5d2c8d7f4b9c Issue-ID: POLICY-494 Signed-off-by: Mike Babinski <mb1915@att.com>
Diffstat (limited to 'ONAP-PAP-REST/src')
-rw-r--r--ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/handler/DeleteHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/handler/DeleteHandler.java b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/handler/DeleteHandler.java
index ab0492312..7f612a57e 100644
--- a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/handler/DeleteHandler.java
+++ b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/handler/DeleteHandler.java
@@ -373,6 +373,7 @@ public class DeleteHandler {
}
}
if (responseString.equals("success")) {
+ loggingContext.transactionEnded();
PolicyLogger.info("Policy successfully deleted!");
PolicyLogger.audit("Policy successfully deleted!");
response.setStatus(HttpServletResponse.SC_OK);
@@ -449,8 +450,8 @@ public class DeleteHandler {
}
if (response==null){
response = "success";
+ loggingContext.transactionEnded();
PolicyLogger.audit("Policy successfully deleted!");
- PolicyLogger.audit("Transaction Ended Successfully");
}
loggingContext.transactionEnded();
PolicyLogger.audit("Transaction Ended");