summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorJames Forsyth <jf2512@att.com>2017-10-05 16:54:12 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-05 16:54:12 +0000
commite6be129e4865104321cdd6313f9729c4e7b07d22 (patch)
treec13abb722325c53f0c2c541e40ec978ae24f303c /src/main/java/org
parent5397f3a9420c685745a4f7057a21271ef44fda22 (diff)
parent799ed511a6b514e7f87d23e5150c2a84cc8db919 (diff)
Merge "Not logged or rethrow this exception."
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/openecomp/datarouter/util/DataRouterProperties.java9
1 files changed, 7 insertions, 2 deletions
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
--- 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 org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
public class DataRouterProperties {
+ private static final Logger logger = LoggerFactory.getLogger(DataRouterProperties.class);
+
private static Properties properties;
static {
@@ -38,9 +43,9 @@ public class DataRouterProperties {
try {
properties.load(new FileInputStream(file));
} catch (FileNotFoundException e) {
- e.printStackTrace();
+ logger.error("FileNotFoundException: ", e);
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("IOException: ", e);
}
}