fixing Critical Sonar Issue 21/61521/1
authorThamlurRaju <thamlurraju468@gmail.com>
Tue, 21 Aug 2018 09:43:28 +0000 (15:13 +0530)
committerThamlurRaju <thamlurraju468@gmail.com>
Tue, 21 Aug 2018 09:47:26 +0000 (15:17 +0530)
Either log or rethrow this exception
Sonar Link:
https://sonar.onap.org/project/issues?assignees=ThamlurRaju&id=org.onap.vfc.nfvo.driver.vnfm.svnfm.huawei%3Avfc-nfvo-driver-vnfm-svnfm-huawei&open=AWOMyzufwGn37Jfbp59f&resolved=false&severities=CRITICAL
Location:
src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/csm/vnf/ScaleManager.java
Line No- 58

Change-Id: I4dd31ffcefe52ba8c6214ae6b78ac89846d7deee
Issue-ID: VFC-1044
Signed-off-by: ThamlurRaju <thamlurraju468@gmail.com>
huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/csm/vnf/ScaleManager.java

index e92da07..08d9081 100644 (file)
@@ -56,7 +56,7 @@ public abstract class ScaleManager {
             JSONArray vms = queryVms.getJSONObject("data").getJSONArray("vms");
             writeVmIdsToFile(vnfId, vms);
         } catch(JSONException e) {
-            LOG.error("function=beforeScaleOut, msg=recode current vms JSONException");
+            LOG.error("function=beforeScaleOut, msg=recode current vms JSONException", e);
         }
     }