diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2018-03-15 13:40:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-15 13:40:47 +0000 |
commit | 2e5713eb049386edbf002a09d26b8c17c962fa96 (patch) | |
tree | 823cbbb58a5a8cfa02978b4d6f497c867762eeea | |
parent | 4ca30948723ba4df4b57fdaa4ecf6f6dbc146e3d (diff) | |
parent | ebee74fd998e5947f483708e8e06ff25a1be351d (diff) |
Merge "Sonar Critical"
-rw-r--r-- | mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java index efc58ed691..dba562e927 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java @@ -510,6 +510,7 @@ public class ServiceInstances { try { sir = convertJsonToServiceInstanceRequest(requestJSON, action, startTime, sir, msoRequest); } catch(Exception e) { + msoLogger.debug("Exception occurred while mapping of request to JSON object ", e); Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_BAD_REQUEST, MsoException.ServiceException, "Mapping of request to JSON object failed. " + e.getMessage(), ErrorNumbers.SVC_BAD_PARAMETER, null); @@ -520,6 +521,7 @@ public class ServiceInstances { try { parseRequest(requestJSON, action, instanceIdMap, version, startTime, sir, msoRequest); } catch(Exception e) { + msoLogger.debug("Exception occurred while logging ", e); Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_BAD_REQUEST, MsoException.ServiceException, "Error parsing request. " + e.getMessage(), ErrorNumbers.SVC_BAD_PARAMETER, null); @@ -725,6 +727,7 @@ public class ServiceInstances { try { createRequestRecord(action, startTime, msoRequest); } catch(Exception e) { + msoLogger.debug("Exception occurred while creating record in DB", e); Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_INTERNAL_SERVER_ERROR, MsoException.ServiceException, "Exception while creating record in DB " + e.getMessage(), |