diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2018-07-30 12:27:20 +0200 |
---|---|---|
committer | bogumil_zebek <bogumil.zebek@nokia.com> | 2018-07-30 12:31:20 +0200 |
commit | 4d9442281c3484f3c2bacb337d25f5cdb4347380 (patch) | |
tree | d9d53ccaa289a6be4d0229aee122be1e88f0f3c4 /champ-service | |
parent | 549b8c5b7e90621fc4d77fa35e6a7be8d58e3182 (diff) |
Fix sonar violation
- "condition always evaluate to true"
Change-Id: I9e1b7a47d0bff1d8cf7067f1a57aa22232fbd0ea
Issue-ID: AAI-1429
Signed-off-by: bogumil_zebek <bogumil.zebek@nokia.com>
Diffstat (limited to 'champ-service')
-rw-r--r-- | champ-service/src/main/java/org/onap/champ/service/logging/LoggingUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/champ-service/src/main/java/org/onap/champ/service/logging/LoggingUtil.java b/champ-service/src/main/java/org/onap/champ/service/logging/LoggingUtil.java index 9463f2c..17ac270 100644 --- a/champ-service/src/main/java/org/onap/champ/service/logging/LoggingUtil.java +++ b/champ-service/src/main/java/org/onap/champ/service/logging/LoggingUtil.java @@ -74,8 +74,8 @@ public class LoggingUtil { auditLogger.info(ChampMsgs.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(); } |