aboutsummaryrefslogtreecommitdiffstats
path: root/datarouter-subscriber/src
diff options
context:
space:
mode:
authorRam Koya <rk541m@att.com>2018-09-17 14:31:54 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-17 14:31:54 +0000
commit1298e6487340fcb1644c4a0a7e06026d156bdf8f (patch)
treead1155906ab952ffcc57b0eb92ffa2912c53b893 /datarouter-subscriber/src
parent6d10bed2c0a833ae38d49efe8df0b74c825633e8 (diff)
parente5231e1f3585144e1f8bfab9d62733b8a43c3f9d (diff)
Merge "Fix new sonar vulnerabilities"
Diffstat (limited to 'datarouter-subscriber/src')
-rw-r--r--datarouter-subscriber/src/main/java/org/onap/dmaap/datarouter/subscriber/SubscriberProps.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/datarouter-subscriber/src/main/java/org/onap/dmaap/datarouter/subscriber/SubscriberProps.java b/datarouter-subscriber/src/main/java/org/onap/dmaap/datarouter/subscriber/SubscriberProps.java
index 39ab166b..329c06a5 100644
--- a/datarouter-subscriber/src/main/java/org/onap/dmaap/datarouter/subscriber/SubscriberProps.java
+++ b/datarouter-subscriber/src/main/java/org/onap/dmaap/datarouter/subscriber/SubscriberProps.java
@@ -26,9 +26,12 @@ package org.onap.dmaap.datarouter.subscriber;
import java.io.IOException;
import java.util.Properties;
+import org.apache.log4j.Logger;
+
public class SubscriberProps {
private static SubscriberProps instance = null;
+ private static Logger subLogger = Logger.getLogger("org.onap.dmaap.datarouter.subscriber.internal");
private Properties properties;
private SubscriberProps(String propsPath) throws IOException{
@@ -42,7 +45,7 @@ public class SubscriberProps {
try {
instance = new SubscriberProps(propsPath);
} catch (IOException ioe) {
- ioe.printStackTrace();
+ subLogger.error("IO Exception: " + ioe.getMessage());
}
}
return instance;