sonar critical for Exception Handling 57/30457/2
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Tue, 6 Feb 2018 13:36:57 +0000 (19:06 +0530)
committerSoumendu Sekhar Acharya <SA00498080@techmahindra.com>
Wed, 7 Feb 2018 05:39:11 +0000 (05:39 +0000)
Log this exception
Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#resolved=false|severities=CRITICAL|assignees=Soumendu
Location:
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
Line No-444

Change-Id: Ibc26d86578a7d819dbf1138746fe3168cadf2f03
Issue-ID: DMAAP-241
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java

index 8f189b3..cf49094 100644 (file)
@@ -446,7 +446,7 @@ public class MirrorMakerAgent {
                                        Thread.currentThread().interrupt();
                                }
                        } catch (IOException ex) {
                                        Thread.currentThread().interrupt();
                                }
                        } catch (IOException ex) {
-                               ex.printStackTrace();
+                               logger.error(" IOException Occered " + ex);
                        } finally {
                                if (out != null) {
                                        try {
                        } finally {
                                if (out != null) {
                                        try {