Merge "sonar critical for Exception Handling"
authorvarun gudisena <vg411h@att.com>
Wed, 7 Feb 2018 16:40:59 +0000 (16:40 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 7 Feb 2018 16:40:59 +0000 (16:40 +0000)
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java

index 1c24273..e533a72 100644 (file)
@@ -404,7 +404,7 @@ public class MirrorMakerAgent {
                        out = new FileOutputStream(mmagenthome + "/etc/mmagent.config");
                        mirrorMakerProperties.store(out, "");
                } catch (IOException ex) {
-                       ex.printStackTrace();
+                       logger.error(" IOException Occered " + ex);
                } finally {
                        if (out != null) {
                                try {