sonar critical for Exception Handling 77/30377/2
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Tue, 6 Feb 2018 05:38:02 +0000 (11:08 +0530)
committerSoumendu Sekhar Acharya <SA00498080@techmahindra.com>
Wed, 7 Feb 2018 05:40:22 +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-283

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

index 7e28f52..c175f5b 100644 (file)
@@ -284,6 +284,7 @@ public class MirrorMakerAgent {
                        return response;
 
                } catch (Exception e) {
+                       logger.error(" Exception Occered " + e);
                        return "ERROR:" + e.getLocalizedMessage();
                }
        }