mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Enhance crash reports and logging to capture transformers on stack trace elements.
Moved log4j2.xml file to the launcher source set, so it loads first in the client. Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
10 files changed
+152
-10
No files matched your search
@@ -19,6 +19,7 @@
|
||||
|
||||
package net.minecraftforge.fml;
|
||||
|
||||
import cpw.mods.modlauncher.log.TransformingThrowablePatternConverter;
|
||||
import net.minecraft.crash.CrashReport;
|
||||
import net.minecraft.crash.CrashReportCategory;
|
||||
import net.minecraftforge.fml.common.ICrashCallable;
|
||||
@@ -78,4 +79,9 @@ public class CrashReportExtender
|
||||
public static void addCrashReportHeader(StringBuilder stringbuilder, CrashReport crashReport)
|
||||
{
|
||||
}
|
||||
|
||||
public static String generateEnhancedStackTrace(final Throwable throwable) {
|
||||
return TransformingThrowablePatternConverter.generateEnhancedStackTrace(throwable);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user