diff --git a/classlib/src/main/java/org/teavm/classlib/java/util/logging/TLogger.java b/classlib/src/main/java/org/teavm/classlib/java/util/logging/TLogger.java index a4b1b62c8..69e71028b 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/util/logging/TLogger.java +++ b/classlib/src/main/java/org/teavm/classlib/java/util/logging/TLogger.java @@ -64,6 +64,9 @@ public class TLogger { System.out.print(record.getLevel().getName()); System.out.print("] "); System.out.println(message); + if (record.getThrown() != null) { + record.getThrown().printStackTrace(System.out); + } } else { if (record.getLevel().intValue() >= TLevel.SEVERE.intValue()) { error(message);