Code Review
/
aai
/
data-router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Not logged or rethrow this exception.
[aai/data-router.git]
/
src
/
main
/
java
/
org
/
openecomp
/
datarouter
/
util
/
DataRouterProperties.java
diff --git
a/src/main/java/org/openecomp/datarouter/util/DataRouterProperties.java
b/src/main/java/org/openecomp/datarouter/util/DataRouterProperties.java
index
21e36a2
..
30b798f
100644
(file)
--- a/
src/main/java/org/openecomp/datarouter/util/DataRouterProperties.java
+++ b/
src/main/java/org/openecomp/datarouter/util/DataRouterProperties.java
@@
-28,8
+28,13
@@
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
import java.io.IOException;
import java.util.Properties;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
public class DataRouterProperties {
public class DataRouterProperties {
+ private static final Logger logger = LoggerFactory.getLogger(DataRouterProperties.class);
+
private static Properties properties;
static {
private static Properties properties;
static {
@@
-38,9
+43,9
@@
public class DataRouterProperties {
try {
properties.load(new FileInputStream(file));
} catch (FileNotFoundException e) {
try {
properties.load(new FileInputStream(file));
} catch (FileNotFoundException e) {
-
e.printStackTrace(
);
+
logger.error("FileNotFoundException: ", e
);
} catch (IOException e) {
} catch (IOException e) {
-
e.printStackTrace(
);
+
logger.error("IOException: ", e
);
}
}
}
}