summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorvarun gudisena <vg411h@att.com>2018-02-07 16:40:32 +0000
committerGerrit Code Review <gerrit@onap.org>2018-02-07 16:40:32 +0000
commit06c55be75c1a50b186ded150afb394fccb10af58 (patch)
tree88d67281c67d7fa1b0bfcace88e2dc4e3c84c99d /src/main/java
parent510fc7411c47881158becbdb5b2639a74a4a930a (diff)
parenteb61336d63865ab0e8319571660b81f7a76fec55 (diff)
Merge "sonar critical for Exception Handling"
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
index 6c9cbd0..a187d89 100644
--- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
+++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
@@ -36,6 +36,7 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.Properties;
+import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.jasypt.util.text.BasicTextEncryptor;
@@ -442,6 +443,8 @@ public class MirrorMakerAgent {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
+ logger.log(Level.WARN, "Interrupted!", e);
+ Thread.currentThread().interrupt();
}
} catch (IOException ex) {
ex.printStackTrace();