Use logger for exceptions

This commit is contained in:
juanmuscaria committed 2021-09-14 12:26:52 -03:00
1 parent 89d03bcc6b
commit 6e318ba9bb
2 files changed
+2 -2

No files matched your search

@@ -78,7 +78,7 @@ public class AsyncPremiumCheck extends JoinManagement<Player, CommandSource, Vel
Thread.currentThread().interrupt(); // Restore the interrupt flag
return event;
} catch (ExecutionException e) {
e.printStackTrace();
core.getPlugin().getLog().error("Error firing event", e);
return event;
}
}
@@ -98,7 +98,7 @@ public class ForceLoginTask
Thread.currentThread().interrupt(); // Set the interrupt flag again
return event;
} catch (ExecutionException e) {
e.printStackTrace();
core.getPlugin().getLog().error("Error firing event", e);
return event;
}
}