#18: Remove printStackTrace logging and use plugin logger

This commit is contained in:
2023-09-25 19:40:12 +02:00
parent 8dedb9e706
commit d0e017291d
@@ -106,8 +106,7 @@ public class StaffChatHandler {
try {
actualMessage = msgin.readUTF();
} catch (IOException e) {
e.printStackTrace();
plugin.getLogger().severe("Failed to read plugin message from bungeecord");
plugin.getLogger().log(Level.SEVERE, "Failed to read plugin message from bungeecord", e);
return;
}
sendStaffChatMessage(actualMessage);
@@ -123,8 +122,7 @@ public class StaffChatHandler {
try {
dataStream.writeUTF(message);
} catch (IOException e) {
e.printStackTrace();
plugin.getLogger().severe("Failed to send plugin message to bungeecord");
plugin.getLogger().log(Level.SEVERE, "Failed to send plugin message to bungeecord", e);
return;
}
byte[] data = byteStream.toByteArray();