added two hacks to XML.java to support Doc.java
[org.ibex.core.git] / src / org / ibex / Main.java
index bfc2abd..ed5199d 100644 (file)
@@ -58,7 +58,8 @@ public class Main {
                     else if (opt.equals("info")) Log.level = Log.INFO;
                     else if (opt.equals("warn")) Log.level = Log.WARN;
                     else if (opt.equals("error")) Log.level = Log.ERROR;
-                    else if (opt.equals("error")) Log.level = Log.SILENT;
+                    else if (opt.equals("silent")) Log.level = Log.SILENT;
+                    else if (opt.equals("rpc")) Log.rpc = true;
                     else Log.file(opt);
                 }
             }
@@ -93,6 +94,7 @@ public class Main {
         scarImage =
             Picture.load((Stream)Main.builtin.get("org/ibex/builtin/scar.png"),
                          new Scheduler.Task() { public void perform() throws JSExn, UnknownHostException {
+                             if (Log.on) Log.info(Main.class, "invoking initial template");
                              ibex.resolveString(startupTemplate, false).call(new Box(), null, null, null, 1);
                          } });