Either log or rethrow this exception. 56/75856/3
authorShubhada Ramkrishna Vaze <SV00449682@TechMahindra.com>
Wed, 16 Jan 2019 09:34:13 +0000 (15:04 +0530)
committerShubhada Vaze <SV00449682@techmahindra.com>
Tue, 22 Jan 2019 06:46:19 +0000 (06:46 +0000)
Location:DistributionClientEmulator.java

Change-Id: I38b1b3fed9db0d24a6045352127e48b98cce6b63
Issue-ID: SO-1397
Signed-off-by: Shubhada Ramkrishna Vaze <SV00449682@TechMahindra.com>
asdc-controller/src/main/java/org/onap/so/asdc/client/test/emulators/DistributionClientEmulator.java

index 1d07656..596ad16 100644 (file)
@@ -90,8 +90,9 @@ public class DistributionClientEmulator implements IDistributionClient {
                byte[] inputStream=null;
                try {
                        inputStream = getData(filename);
-               } catch (IOException e) {                       
-                       logger.debug("InputStream is NULL for:"+ resourcePath + filename);
+               } catch (IOException e) {       
+                       
+                       logger.error("IOException in DistributionClientEmulator.download() method :",e);
                }               
        
                return new DistributionClientDownloadResultImpl(DistributionActionResultEnum.SUCCESS, DistributionActionResultEnum.SUCCESS.name(),arg0.getArtifactName(),inputStream);