fixed heinous breakage, added backtrace support
[org.ibex.core.git] / src / org / ibex / Scheduler.java
index 46b076a..9b39509 100644 (file)
@@ -60,7 +60,6 @@ public class Scheduler {
     protected static Queue runnable = new Queue(50);
     public void defaultRun() {
         while(true) {
-            System.out.println("enter");
             current = (Task)runnable.remove(true);
             try {
                 // FIXME hideous
@@ -80,7 +79,6 @@ public class Scheduler {
                 renderAll();
             } catch (JSExn e) {
                 Log.info(Scheduler.class, "a JavaScript thread spawned with ibex.thread() threw an exception:");
-                Log.info(Scheduler.class, "JS Exception: " + e.getObject() + "\n" + e.backtrace());
                 Log.info(Scheduler.class,e);
             } catch (Exception e) {
                 Log.info(Scheduler.class, "a Task threw an exception which was caught by the scheduler:");
@@ -89,7 +87,6 @@ public class Scheduler {
                 t.printStackTrace();
             }
             // if an Error is thrown it will cause the engine to quit
-            System.out.println("leave");
         }
     }
 }