diff options
author | Arindam Mondal <arind.mondal@samsung.com> | 2019-08-02 15:08:56 +0900 |
---|---|---|
committer | arind.mondal <arind.mondal@samsung.com> | 2019-08-02 15:09:21 +0900 |
commit | 47ef8d355ca9fdc73a21f4a2fabeceabff194891 (patch) | |
tree | 33b7f2206426fff5670455fb3c792ff50dcba9ff /adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter | |
parent | 15c7bc833ae91ed2590370dd001d5361149aef9a (diff) |
General sonar fixes
+) Add logger to log exception
++) Format logger
Issue-ID: SO-2187
Change-Id: Id77271340070a61e7ce82822321d7e5b8b03f759
Signed-off-by: arind.mondal <arind.mondal@samsung.com>
Diffstat (limited to 'adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter')
-rw-r--r-- | adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/jobmanagement/JobManager.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/jobmanagement/JobManager.java b/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/jobmanagement/JobManager.java index 19c8d22030..d01e5b186c 100644 --- a/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/jobmanagement/JobManager.java +++ b/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/jobmanagement/JobManager.java @@ -101,8 +101,7 @@ public class JobManager { } final InlineResponse200 operation = operationOptional.get(); - logger.debug( - "Job Id: " + jobId + ", operationId: " + operation.getId() + ", operation details: " + operation); + logger.debug("Job Id: {} operationId: {} operation details: {} ", jobId, operation.getId(), operation); if (operation.getOperationState() == null) { return response.operationStatusRetrievalStatus(OperationStatusRetrievalStatusEnum.WAITING_FOR_STATUS); @@ -148,7 +147,8 @@ public class JobManager { if (relatedOperation.isPresent()) { relatedOperation.get().setNotificationProcessed(notificationProcessingWasSuccessful); } else { - logger.debug("No operation found for operation ID " + operationId); + logger.debug("No operation found for operation ID {} ", operationId); + } } @@ -159,7 +159,7 @@ public class JobManager { if (relatedOperation.isPresent()) { relatedOperation.get().setVnfDeleted();; } else { - logger.debug("No operation found for operation ID " + operationId); + logger.debug("No operation found for operation ID {} ", operationId); } } |