Logging information why a read of sockstat failed ultimately

This commit is contained in:
Simon Pamies committed 2013-03-29 16:33:41 +01:00
1 parent 548b96c04b
commit 7c3cddbe70
1 file changed
+3 -2
@@ -88,7 +88,8 @@ public class SystemInformationImpl implements SystemInformation {
try {
sockstat = readProc("/proc/net/sockstat");
} catch (Exception ex) {
/* ok ignore */
/* ok something went wrong */
ex.printStackTrace();
}
}
@@ -292,7 +293,7 @@ public class SystemInformationImpl implements SystemInformation {
result.append(ns.toString()).append("\n");
}
result.append("Contents of TMP directory (java.io.tmpdir)").append("\n");
result.append("\nContents of TMP directory (java.io.tmpdir)").append("\n");
result.append(Arrays.toString(new File(System.getProperty("java.io.tmpdir")).listFiles()));
} catch (Exception ex) {