Logger usage Issue In ScaleManager 73/61573/1
authorThamlurRaju <thamlurraju468@gmail.com>
Tue, 21 Aug 2018 12:39:57 +0000 (18:09 +0530)
committerThamlurRaju <thamlurraju468@gmail.com>
Tue, 21 Aug 2018 12:39:57 +0000 (18:09 +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=AWOMyzufwGn37Jfbp59i&resolved=false&severities=CRITICAL
Location:
src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/csm/vnf/ScaleManager.java
Line No- 140

Change-Id: I3a77fa185d332abf36c8c3acd2082c70965a6fea
Issue-ID: VFC-1047
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 cec4ba3..ce4e29b 100644 (file)
@@ -138,7 +138,7 @@ public abstract class ScaleManager {
         } catch(IOException e) {
             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);
+            LOG.error("function=readVmIdsFile, msg=read vms from file JSONException, fileContent : {}", fileContent, " JSON Exception : " + e);
         }
         return new JSONArray();
     }