diff options
author | Tian Lee <TianL@amdocs.com> | 2018-06-27 10:46:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-06-27 10:46:33 +0000 |
commit | 4b09e9e4fe77a4aa749f1a7ffa07545b64d3e2cb (patch) | |
tree | 84842c835dd83914e4fec5cb151c027c6d50fd2c /src/main | |
parent | c68bb59a80df56a8426afad811d8e1833a5748a6 (diff) | |
parent | aa01eb4c23ab560012beda3f212892be8599b0c4 (diff) |
Merge "Fix sonar issues in crud/logging/LoggingUtil"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/crud/logging/LoggingUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/crud/logging/LoggingUtil.java b/src/main/java/org/onap/crud/logging/LoggingUtil.java index 31c0c1f..2ee695f 100644 --- a/src/main/java/org/onap/crud/logging/LoggingUtil.java +++ b/src/main/java/org/onap/crud/logging/LoggingUtil.java @@ -79,8 +79,8 @@ public class LoggingUtil { auditLogger.info(CrudServiceMsgs.PROCESS_REST_REQUEST, new LogFields().setField(LogLine.DefinedFields.RESPONSE_CODE, response.getStatus()) .setField(LogLine.DefinedFields.RESPONSE_DESCRIPTION, respStatusString), - (req != null) ? req.getMethod() : "Unknown", (req != null) ? req.getRequestURL().toString() : "Unknown", - (req != null) ? req.getRemoteHost() : "Unknown", Integer.toString(response.getStatus()) + " payload: " + req.getMethod(), req.getRequestURL().toString(), + req.getRemoteHost(), Integer.toString(response.getStatus()) + " payload: " + (response.getEntity() == null ? "" : response.getEntity().toString())); MDC.clear(); } |