Skip to content

Commit

Permalink
Merge pull request runelite#1175 from Abextm/log-game-crash
Browse files Browse the repository at this point in the history
Log game crashes to the logger, not Stdout
  • Loading branch information
deathbeam authored Mar 29, 2018
2 parents fca60e3 + 2078b7b commit da029b9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
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;

Expand All @@ -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();

Expand Down

0 comments on commit da029b9

Please sign in to comment.