diff options
author | 2018-02-02 18:19:54 +0530 | |
---|---|---|
committer | 2018-02-02 18:19:54 +0530 | |
commit | ade4717bf9e099df0be7a53914f1c91d8575f463 (patch) | |
tree | 54fea2c86744627f09c2da7f6e8637155d22985f /src/main/java/com/att/nsa/dmaapMMAgent | |
parent | adf340af7852891c7c89b146cf9a272e57ddd825 (diff) |
sonar critical for Exception handling
Use a logger to log this exception
https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#assignees=soumendu|resolved=false
Location:
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
Line No-493
Change-Id: Ic78e83c9455728754f941f500bdc7db905782907
Issue-ID: DMAAP-223
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
Diffstat (limited to 'src/main/java/com/att/nsa/dmaapMMAgent')
-rw-r--r-- | src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java index d0237f1..8be0aa4 100644 --- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java +++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java @@ -102,7 +102,7 @@ public class MirrorMakerAgent { try { input.close(); } catch (IOException e) { - logger.error("IOException" + e); + logger.error(" IOException occers " + e); } } } @@ -492,6 +492,7 @@ public class MirrorMakerAgent { out.close(); } catch (IOException e) { e.printStackTrace(); + logger.error("IOException occered " + e); } } } |