X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Futil%2FLog.java;h=5d092160af7fad7091406088a819adbf7d0038f4;hb=d892b1ff73b696e37812afd7d78c2eaae3342a0b;hp=2046b77c643c482bffb8054a597e321fd643b61f;hpb=4abd3e305d0b87f37d5969016b86ba53574a3210;p=org.ibex.core.git diff --git a/src/org/ibex/util/Log.java b/src/org/ibex/util/Log.java index 2046b77..5d09216 100644 --- a/src/org/ibex/util/Log.java +++ b/src/org/ibex/util/Log.java @@ -15,6 +15,7 @@ import java.net.*; public class Log { public static boolean on = true; + public static boolean rpc = false; public static boolean color = false; public static boolean verbose = false; public static boolean logDates = false; @@ -77,7 +78,10 @@ public class Log { if (firstMessage && !logDates) { firstMessage = false; logstream.println(colorize(GREEN, false, "===========================================================================")); - diag(Log.class, "Logging enabled at " + new java.util.Date()); + + // FIXME later: causes problems with method pruning + //diag(Log.class, "Logging enabled at " + new java.util.Date()); + if (color) diag(Log.class, "logging messages in " + colorize(BLUE, true, "c") + colorize(RED, true, "o") + @@ -126,7 +130,7 @@ public class Log { try { String m = ""; while((s = br.readLine()) != null) m += s + "\n"; - log(o, m.substring(0, m.length() - 1), level); + if (m.length() > 0) log(o, m.substring(0, m.length() - 1), level); } catch (IOException e) { logstream.println(colorize(RED, true, "Logger: exception thrown by ByteArrayInputStream -- this should not happen")); }