Use logger for exceptions

This commit is contained in:
juanmuscaria
2021-09-14 12:26:52 -03:00
parent 89d03bcc6b
commit 6e318ba9bb
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}