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

index 5c2b669..1c24273 100644 (file)
@@ -351,7 +351,7 @@ public class MirrorMakerAgent {
                                        } catch (Exception ex) {
                                                connectionattempt++;
                                                if (connectionattempt > 5) {
-                                                       logger.info("Can't connect to the topic, mmagent shutting down , " + topicMessage);
+                                                       logger.info("Can't connect to the topic, mmagent shutting down , " + topicMessage + ex);
                                                        return;
                                                }
                                                logger.info("Can't connect to the topic, " + topicMessage + " Retrying " + connectionattempt