mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
C: print stack trace in Logger class
This commit is contained in:
parent
3364022313
commit
336590314c
|
@ -64,6 +64,9 @@ public class TLogger {
|
||||||
System.out.print(record.getLevel().getName());
|
System.out.print(record.getLevel().getName());
|
||||||
System.out.print("] ");
|
System.out.print("] ");
|
||||||
System.out.println(message);
|
System.out.println(message);
|
||||||
|
if (record.getThrown() != null) {
|
||||||
|
record.getThrown().printStackTrace(System.out);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (record.getLevel().intValue() >= TLevel.SEVERE.intValue()) {
|
if (record.getLevel().intValue() >= TLevel.SEVERE.intValue()) {
|
||||||
error(message);
|
error(message);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user