Print system details on startup without printing a full crash report (#3909)

This commit is contained in:
mezz 2017-05-21 12:30:57 -07:00 committed by LexManos
parent 14d8151b02
commit 1c0b53f3bf
1 changed files with 4 additions and 7 deletions

View File

@ -228,13 +228,10 @@ public class SplashProgress
return "GL info";
}
});
CrashReport report = CrashReport.makeCrashReport(new Throwable()
{
@Override public String getMessage(){ return "This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR"; }
@Override public void printStackTrace(final PrintWriter s){ s.println(getMessage()); }
@Override public void printStackTrace(final PrintStream s) { s.println(getMessage()); }
}, "Loading screen debug info");
System.out.println(report.getCompleteReport());
CrashReport report = CrashReport.makeCrashReport(new Throwable(), "Loading screen debug info");
StringBuilder systemDetailsBuilder = new StringBuilder();
report.getCategory().appendToStringBuilder(systemDetailsBuilder);
FMLLog.info(systemDetailsBuilder.toString());
try
{