sonar critical for Exception Handling 03/30403/2
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Tue, 6 Feb 2018 08:21:09 +0000 (13:51 +0530)
committerSoumendu Sekhar Acharya <SA00498080@techmahindra.com>
Wed, 7 Feb 2018 05:40:04 +0000 (05:40 +0000)
Logged the 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-346

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

index 37236f3..8e476cc 100644 (file)
@@ -347,7 +347,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