Skip to content

Commit

Permalink
Remove useless calls to printStackTrace
Browse files Browse the repository at this point in the history
  • Loading branch information
frengor committed Sep 25, 2023
1 parent f77dbb9 commit 5684426
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/fren_gor/lightInjector/LightInjector.java
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,6 @@ public void write(ChannelHandlerContext ctx, Object packet, ChannelPromise promi
throw error;
} catch (Throwable throwable) {
plugin.getLogger().log(Level.SEVERE, "[LightInjector] An error occurred while calling onPacketSendAsync:", throwable);
throwable.printStackTrace();
super.write(ctx, packet, promise);
return;
}
Expand All @@ -534,7 +533,6 @@ public void channelRead(ChannelHandlerContext ctx, Object packet) throws Excepti
throw error;
} catch (Throwable throwable) {
plugin.getLogger().log(Level.SEVERE, "[LightInjector] An error occurred while calling onPacketReceiveAsync:", throwable);
throwable.printStackTrace();
super.channelRead(ctx, packet);
return;
}
Expand Down

0 comments on commit 5684426

Please sign in to comment.