aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-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);
}
}