Merge pull request #1175 from Abextm/log-game-crash

Log game crashes to the logger, not Stdout
This commit is contained in:
Tomas Slusny
2018-03-29 12:19:09 +02:00
committed by GitHub

View File

@@ -27,6 +27,7 @@ package net.runelite.mixins;
import net.runelite.api.mixins.Copy;
import net.runelite.api.mixins.Mixin;
import net.runelite.api.mixins.Replace;
import net.runelite.client.callback.Hooks;
import net.runelite.rs.api.RSClient;
import net.runelite.rs.api.RSRunException;
@@ -51,7 +52,7 @@ public abstract class ProcessClientErrorMixin implements RSClient
throwableToScan = ((RSRunException) throwable).getParent();
}
throwableToScan.printStackTrace();
Hooks.log.error("Game crash", throwableToScan);
StackTraceElement[] stackTrace = throwableToScan.getStackTrace();