sonar critical for Exception Handling 25/26625/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Wed, 20 Dec 2017 11:43:44 +0000 (17:13 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Wed, 20 Dec 2017 11:43:44 +0000 (17:13 +0530)
Use a logger to log this exception
Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.messageservice%3AdmaapMR1#assignees=soumendu|severities=CRITICAL|resolved=false
Location:
src/main/java/com/att/nsa/dmaap/service/MMRestService.java
Line No-1011

Change-Id: I0f1c7cbb78eba96957a605d8672770fc7b1a9a05
Issue-ID: DMAAP-188
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
src/main/java/com/att/nsa/dmaap/service/MMRestService.java

index f8a7fee..c02fbba 100644 (file)
@@ -1007,7 +1007,6 @@ public class MMRestService {
                                                        inStream = IOUtils.toInputStream(listAll.toString(), UTF_8);
 
                                                } catch (IOException ioe) {
-                                                       ioe.printStackTrace();
                                                        LOGGER.error("IOException: ", ioe);
                                                }
                                                // call listAllMirrorMaker