mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-21 17:15:35 +00:00
log uncaught exceptions in ffdec log window
This commit is contained in:
@@ -2235,6 +2235,14 @@ public class Main {
|
||||
}
|
||||
}
|
||||
|
||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
|
||||
@Override
|
||||
public void uncaughtException(Thread t, Throwable e) {
|
||||
logger.log(Level.SEVERE, "Uncaught exception in thread: " + t.getName(), e);
|
||||
}
|
||||
});
|
||||
|
||||
Formatter formatterTxt = new LogFormatter();
|
||||
if (fileTxt != null) {
|
||||
fileTxt.setFormatter(formatterTxt);
|
||||
|
||||
Reference in New Issue
Block a user