diff options
author | Soumendu Sekhar Acharya <sa00498080@techmahindra.com> | 2018-02-08 17:24:50 +0530 |
---|---|---|
committer | Soumendu Sekhar Acharya <sa00498080@techmahindra.com> | 2018-02-08 17:24:50 +0530 |
commit | 3cc7451e248e499429d0adf286277308e047a6ff (patch) | |
tree | e5b705c322815071b132890b6b899b3658e69857 /src/main | |
parent | 02120d6ea475ddb4cf4de2d5104dbd48426bc4ee (diff) |
sonar critical for Exception handling
Use a logger to log 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-487
Change-Id: I41bc3b331f9f42278b28c0b22b6808f1b2fcd0f3
Issue-ID: DMAAP-244
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java | 2 |
1 files changed, 1 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 cd571a9..77e4789 100644 --- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java +++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java @@ -494,7 +494,7 @@ public class MirrorMakerAgent { Thread.currentThread().interrupt(); } } catch (IOException ex) { - ex.printStackTrace(); + logger.error("Exception at updateWhiteList : " + ex); } finally { if (out != null) { try { |