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
[DMAAP-DR] Remove AAF/TLS phase 1
[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
ba7aa7a
..
c060a9b
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
@@
-25,14
+25,16
@@
package org.onap.dmaap.datarouter.subscriber;
import java.io.IOException;
import java.util.Properties;
import java.io.IOException;
import java.util.Properties;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
-import org.apache.log4j.Logger;
public class SubscriberProps {
public class SubscriberProps {
+ private static final Logger logger = LoggerFactory.getLogger(SubscriberProps.class);
+
private static SubscriberProps instance = null;
private static SubscriberProps instance = null;
- private static Logger subLogger = Logger.getLogger("org.onap.dmaap.datarouter.subscriber.internal");
- private Properties properties;
+ private final Properties properties;
private SubscriberProps(String propsPath) throws IOException {
properties = new Properties();
private SubscriberProps(String propsPath) throws IOException {
properties = new Properties();
@@
-50,7
+52,7
@@
public class SubscriberProps {
try {
instance = new SubscriberProps(propsPath);
} catch (IOException ioe) {
try {
instance = new SubscriberProps(propsPath);
} catch (IOException ioe) {
-
subL
ogger.error("IO Exception: " + ioe.getMessage(), ioe);
+
l
ogger.error("IO Exception: " + ioe.getMessage(), ioe);
}
}
return instance;
}
}
return instance;