* Console: Print stack trace if exception on startup

This commit is contained in:
zzz
2010-05-05 17:50:28 +00:00
parent c2c379c994
commit 8225ce063a

View File

@ -75,7 +75,7 @@ public class RouterConsoleRunner {
_server = new Server(); _server = new Server();
boolean rewrite = false; boolean rewrite = false;
Properties props = webAppProperties(); Properties props = webAppProperties();
if (props.size() <= 0) { if (props.isEmpty()) {
props.setProperty(PREFIX + ROUTERCONSOLE + ENABLED, "true"); props.setProperty(PREFIX + ROUTERCONSOLE + ENABLED, "true");
rewrite = true; rewrite = true;
} }
@ -161,6 +161,7 @@ public class RouterConsoleRunner {
"If so, you may ignore this error, or remove the\n" + "If so, you may ignore this error, or remove the\n" +
"\"::1,\" in the \"clientApp.0.args\" line of the clients.config file.\n" + "\"::1,\" in the \"clientApp.0.args\" line of the clients.config file.\n" +
"Exception: " + me); "Exception: " + me);
me.printStackTrace();
} }
if (baseHandler != null) { if (baseHandler != null) {