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:
cpw committed 2019-05-27 00:00:45 -04:00
1 parent fb30820e2b
commit c57c6213ea
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);
}
}