Not logging or re-throwing the exceptions 49/17049/1
authorrama-huawei <rama.subba.reddy.s@huawei.com>
Tue, 3 Oct 2017 13:12:18 +0000 (18:42 +0530)
committerrama-huawei <rama.subba.reddy.s@huawei.com>
Tue, 3 Oct 2017 13:12:51 +0000 (18:42 +0530)
Issue-id: SO-175

Change-Id: Id3751a11b5c47b2d8db12c9e59bd1d3e4db95c8d
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/VfcAdapterRest.java

index 684933f..52286fd 100644 (file)
@@ -82,6 +82,7 @@ public class VfcAdapterRest {
             RestfulResponse rsp = driverMgr.createNs(nsInput);
             return buildResponse(rsp);
         } catch(ApplicationException e) {
+            LOGGER.debug("ApplicationException: ", e);
             return e.buildErrorResponse();
         }
     }
@@ -107,6 +108,7 @@ public class VfcAdapterRest {
             RestfulResponse rsp = driverMgr.deleteNs(nsOperationKey, nsInstanceId);
             return buildResponse(rsp);
         } catch(ApplicationException e) {
+            LOGGER.debug("ApplicationException: ", e);
             return e.buildErrorResponse();
         }
     }
@@ -135,6 +137,7 @@ public class VfcAdapterRest {
             RestfulResponse rsp = driverMgr.getNsProgress(nsOperationKey, jobId);
             return buildResponse(rsp);
         } catch(ApplicationException e) {
+            LOGGER.debug("ApplicationException: ", e);
             return e.buildErrorResponse();
         }
     }
@@ -161,6 +164,7 @@ public class VfcAdapterRest {
             RestfulResponse rsp = driverMgr.instantiateNs(nsInstanceId, nsInput);
             return buildResponse(rsp);
         } catch(ApplicationException e) {
+            LOGGER.debug("ApplicationException: ", e);
             return e.buildErrorResponse();
         }
     }
@@ -188,6 +192,7 @@ public class VfcAdapterRest {
             RestfulResponse rsp = driverMgr.terminateNs(nsOperationKey, nsInstanceId);
             return buildResponse(rsp);
         } catch(ApplicationException e) {
+            LOGGER.debug("ApplicationException: ", e);
             return e.buildErrorResponse();
         }
     }