Fix a few more app startup/shutdown problems
Change-Id: Ideb48a1e845ae345306fa10ec55499c471566ce7
diff --git a/core/net/src/main/java/org/onosproject/cfg/impl/ConfigPropertyDefinitions.java b/core/net/src/main/java/org/onosproject/cfg/impl/ConfigPropertyDefinitions.java
index 8027287..0ecbf7e 100644
--- a/core/net/src/main/java/org/onosproject/cfg/impl/ConfigPropertyDefinitions.java
+++ b/core/net/src/main/java/org/onosproject/cfg/impl/ConfigPropertyDefinitions.java
@@ -18,6 +18,7 @@
import com.google.common.collect.ImmutableSet;
import org.onosproject.cfg.ConfigProperty;
import org.onosproject.cfg.ConfigProperty.Type;
+import org.slf4j.Logger;
import java.io.BufferedReader;
import java.io.IOException;
@@ -29,6 +30,7 @@
import java.util.Set;
import static org.onosproject.cfg.ConfigProperty.defineProperty;
+import static org.slf4j.LoggerFactory.getLogger;
/**
* Utility for writing and reading configuration property definition file.
@@ -39,6 +41,8 @@
private static final String SEP = "\\|";
private static final String COMMENT = "#";
+ private static final Logger log = getLogger(ConfigPropertyDefinitions.class);
+
private ConfigPropertyDefinitions() {
}
@@ -71,6 +75,7 @@
while ((line = br.readLine()) != null) {
if (!line.isEmpty() && !line.startsWith(COMMENT)) {
String[] f = line.split(SEP, 4);
+ log.info("Line is: {} length of array is: {}", line, f.length);
builder.add(defineProperty(f[0], Type.valueOf(f[1]), f[2], f[3]));
}
}