Skip to content

Commit

Permalink
Log game crashes to the logger, not Stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
abextm committed Mar 29, 2018
1 parent fca60e3 commit 2078b7b
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 2078b7b

Please sign in to comment.