summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-10-04 18:19:25 +0530
committerRama SubbaReddy <rama.subba.reddy.s@huawei.com>2017-10-04 13:07:26 +0000
commit799ed511a6b514e7f87d23e5150c2a84cc8db919 (patch)
tree415a1d06c0e86cf7c0a46cb2e7669fc434393944
parent44147a30af456e7e932852d6efb8fff55d857481 (diff)
Not logged or rethrow this exception.
Issue-id: AAI-414 Change-Id: I105ab168eeb784320202a57de4f34c67d3670210 Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
-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);
}
}