sonar critical for Exception Handling 61/26761/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 22 Dec 2017 03:53:59 +0000 (09:23 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 22 Dec 2017 03:53:59 +0000 (09:23 +0530)
Either log or rethrow 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-117

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

index 88b88a3..4e9de52 100644 (file)
@@ -115,7 +115,7 @@ public class MirrorMakerAgent {
                        }
                        logger.info("kakahome is set :" + kafkahome);
                } catch (IOException ex) {
                        }
                        logger.info("kakahome is set :" + kafkahome);
                } catch (IOException ex) {
-                       logger.error(kafkahome + "/bin/kafka-run-class.sh not found.  Make sure kafka home is set correctly");
+                       logger.error(kafkahome + "/bin/kafka-run-class.sh not found.  Make sure kafka home is set correctly" + ex);
                        return false;
                } finally {
                        if (input != null) {
                        return false;
                } finally {
                        if (input != null) {