From 336590314c8162ca9102915beddfd1dd790a99bb Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 27 May 2019 10:43:13 +0300 Subject: [PATCH] C: print stack trace in Logger class --- .../java/org/teavm/classlib/java/util/logging/TLogger.java | 3 +++ 1 file changed, 3 insertions(+) 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);