summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2019-04-25 12:33:31 +0200
committersebdet <sebastien.determe@intl.att.com>2019-04-25 13:03:05 +0200
commit338c218458d6a671dd754ee5c151517685376bd9 (patch)
treed0e6200b7600f260989b25577626272762856f01 /src/main/java
parent12700b07bf4850f7de97b69e9b2fcc96e0540b21 (diff)
Fix policy calls
Fix policy calls so that the url is now right + update camel version to latest Issue-ID: CLAMP-357 Change-Id: Iffc83f53eb2361d7551b43b28c8e822fbf38c619 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/clamp/flow/log/FlowLogOperation.java20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/main/java/org/onap/clamp/flow/log/FlowLogOperation.java b/src/main/java/org/onap/clamp/flow/log/FlowLogOperation.java
index ae96f6a8c..3da93b26a 100644
--- a/src/main/java/org/onap/clamp/flow/log/FlowLogOperation.java
+++ b/src/main/java/org/onap/clamp/flow/log/FlowLogOperation.java
@@ -52,16 +52,15 @@ public class FlowLogOperation {
/**
* Generate the entry log.
*
- * @param serviceDesc The service description
- * the loop name
+ * @param serviceDesc
+ * The service description the loop name
*/
public void startLog(Exchange exchange, String serviceDesc) {
util.entering(request, serviceDesc);
- exchange.getIn().setHeader(ONAPLogConstants.Headers.REQUEST_ID,
- util.getProperties(ONAPLogConstants.MDCs.REQUEST_ID));
- exchange.getIn().setHeader(ONAPLogConstants.Headers.INVOCATION_ID,
+ exchange.setProperty(ONAPLogConstants.Headers.REQUEST_ID, util.getProperties(ONAPLogConstants.MDCs.REQUEST_ID));
+ exchange.setProperty(ONAPLogConstants.Headers.INVOCATION_ID,
util.getProperties(ONAPLogConstants.MDCs.INVOCATION_ID));
- exchange.getIn().setHeader(ONAPLogConstants.Headers.PARTNER_NAME,
+ exchange.setProperty(ONAPLogConstants.Headers.PARTNER_NAME,
util.getProperties(ONAPLogConstants.MDCs.PARTNER_NAME));
}
@@ -69,18 +68,17 @@ public class FlowLogOperation {
* Generate the exiting log.
*/
public void endLog() {
- util.exiting(HttpStatus.OK.toString(), "Successful", Level.INFO,
- ONAPLogConstants.ResponseStatus.COMPLETED);
+ util.exiting(HttpStatus.OK.toString(), "Successful", Level.INFO, ONAPLogConstants.ResponseStatus.COMPLETED);
}
/**
* Generate the error exiting log.
*/
public void errorLog() {
- util.exiting(HttpStatus.INTERNAL_SERVER_ERROR.toString(), "Failed",
- Level.INFO, ONAPLogConstants.ResponseStatus.ERROR);
+ util.exiting(HttpStatus.INTERNAL_SERVER_ERROR.toString(), "Failed", Level.INFO,
+ ONAPLogConstants.ResponseStatus.ERROR);
}
-
+
/**
* Generate the error exiting log.
*/