diff options
author | Switon Tomasz <tomasz.switon@nokia.com> | 2018-06-25 14:16:51 +0200 |
---|---|---|
committer | Switon Tomasz <tomasz.switon@nokia.com> | 2018-06-25 14:16:51 +0200 |
commit | aa01eb4c23ab560012beda3f212892be8599b0c4 (patch) | |
tree | 5bdee43da06ff4ed57ee7b5d2d7fdf5fadc87bbf /src/main/java/org/onap/crud | |
parent | 68cd3355674d66f8feee3d067960c081581a3911 (diff) |
Fix sonar issues in crud/logging/LoggingUtil
Change-Id: I539a60204dd6da73a549e2a995b89f6a0febc2fc
Issue-ID: AAI-1238
Signed-off-by: Switon Tomasz <tomasz.switon@nokia.com>
Diffstat (limited to 'src/main/java/org/onap/crud')
-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(); } |