fixed heinous breakage, added backtrace support
[org.ibex.core.git] / src / org / ibex / util / Log.java
index 9d03e6e..5d09216 100644 (file)
@@ -130,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"));
             }