2003/11/03 05:28:32
[org.ibex.core.git] / src / org / xwt / util / Log.java
index 3a54c4d..dd390d0 100644 (file)
@@ -1,6 +1,6 @@
-// Copyright 2002 Adam Megacz, see the COPYING file for licensing [LGPL]
+// Copyright 2003 Adam Megacz, see the COPYING file for licensing [LGPL]
 package org.xwt.util;
-import org.xwt.js.*;
+import org.xwt.js.JS;
 import java.io.*;
 import java.util.*;
 
@@ -18,7 +18,7 @@ public class Log {
     /** log a message with the current JavaScript sourceName/line */
     public static void logJS(Object o, Object message) { logJS(message); }
     public static void logJS(Object message) {
-        JS.Thread current = org.xwt.js.JS.Thread.fromJavaThread(Thread.currentThread());
+        JS.Context current = org.xwt.js.JS.Context.current();
         if (current == null) {
             log("<none>", message);
         } else {
@@ -28,7 +28,6 @@ public class Log {
 
     /** message can be a String or a Throwable */
     public static synchronized void log(Object o, Object message) {
-
         if (firstMessage && !logDates) {
             firstMessage = false;
             System.err.println("===========================================================================");