Code Review
/
dmaap
/
datarouter.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix new sonar vulnerabilities
[dmaap/datarouter.git]
/
datarouter-subscriber
/
src
/
main
/
java
/
org
/
onap
/
dmaap
/
datarouter
/
subscriber
/
SubscriberProps.java
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
39ab166
..
329c06a
100644
(file)
--- 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 java.io.IOException;
import java.util.Properties;
+import org.apache.log4j.Logger;
+
public class SubscriberProps {
private static SubscriberProps instance = null;
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{
private Properties properties;
private SubscriberProps(String propsPath) throws IOException{
@@
-42,7
+45,7
@@
public class SubscriberProps {
try {
instance = new SubscriberProps(propsPath);
} catch (IOException ioe) {
try {
instance = new SubscriberProps(propsPath);
} catch (IOException ioe) {
-
ioe.printStackTrace(
);
+
subLogger.error("IO Exception: " + ioe.getMessage()
);
}
}
return instance;
}
}
return instance;