Merge "Refactor networkmodel OpenRoadmTopology Part 4"
[transportpce.git] / nbinotifications / src / main / java / org / opendaylight / transportpce / nbinotifications / utils / NbiNotificationsUtils.java
index d1a4ceecad6d1614be13e8b1332039ed9bde85f3..af097c35b86d1ec0b222a59126c97f77ad95338b 100644 (file)
@@ -22,8 +22,7 @@ public final class NbiNotificationsUtils {
 
     public static Properties loadProperties(String propertyFileName) {
         Properties props = new Properties();
-        InputStream inputStream = NbiNotificationsUtils.class.getClassLoader()
-                .getResourceAsStream(propertyFileName);
+        InputStream inputStream = NbiNotificationsUtils.class.getClassLoader().getResourceAsStream(propertyFileName);
         try {
             if (inputStream != null) {
                 props.load(inputStream);
@@ -31,7 +30,7 @@ public final class NbiNotificationsUtils {
                 LOG.warn("Kafka property file '{}' is empty", propertyFileName);
             }
         } catch (IOException e) {
-            LOG.warn("Kafka property file '{}' was not found in the classpath", propertyFileName);
+            LOG.error("Kafka property file '{}' was not found in the classpath", propertyFileName, e);
         }
         return props;
     }