Merge "Not logged or rethrow this exception."
authorJames Forsyth <jf2512@att.com>
Thu, 5 Oct 2017 16:54:12 +0000 (16:54 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 5 Oct 2017 16:54:12 +0000 (16:54 +0000)
src/main/java/org/openecomp/datarouter/util/DataRouterProperties.java

index 21e36a2..30b798f 100644 (file)
@@ -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);
     }
   }