fixing Logger usage Issue 47/61547/1
authorThamlurRaju <thamlurraju468@gmail.com>
Tue, 21 Aug 2018 11:24:41 +0000 (16:54 +0530)
committerThamlurRaju <thamlurraju468@gmail.com>
Tue, 21 Aug 2018 11:24:41 +0000 (16:54 +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=AWOMyzufwGn37Jfbp59h&resolved=false&severities=CRITICAL
Location:
src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/csm/vnf/ScaleManager.java
Line No- 138

Change-Id: I99f7c03cf8978d555506a63fb8142aafe9b9eaff
Issue-ID: VFC-1046
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 3290ef3..cec4ba3 100644 (file)
@@ -136,7 +136,7 @@ public abstract class ScaleManager {
                 return JSONArray.fromObject(fileContent);
             }
         } catch(IOException e) {
-            LOG.error("function=readVmIdsFile, msg=read vms from file IOException, filePath : {}", filePath);
+            LOG.error("function=readVmIdsFile, msg=read vms from file IOException, filePath : {}" + filePath, " Load File Exception : " + e);
         } catch(JSONException e) {
             LOG.error("function=readVmIdsFile, msg=read vms from file JSONException, fileContent : {}", fileContent);
         }