diff --git a/src/main/java/com/teragrep/rlp_03/eventloop/EventLoop.java b/src/main/java/com/teragrep/rlp_03/eventloop/EventLoop.java index 4d1cee61..3f71c785 100644 --- a/src/main/java/com/teragrep/rlp_03/eventloop/EventLoop.java +++ b/src/main/java/com/teragrep/rlp_03/eventloop/EventLoop.java @@ -125,16 +125,15 @@ public void poll() throws IOException { Set selectionKeys = selector.selectedKeys(); LOGGER.debug("selectionKeys <{}> ", selectionKeys); for (SelectionKey selectionKey : selectionKeys) { - if (LOGGER.isDebugEnabled()) { - LOGGER - .debug( - "selectionKey <{}>: isValid <{}>, isConnectable <{}>, isAcceptable <{}>, isReadable <{}>, isWritable <{}>", - selectionKey, selectionKey.isValid(), selectionKey.isConnectable(), - selectionKey.isAcceptable(), selectionKey.isReadable(), selectionKey.isWritable() - ); - } - try { + if (LOGGER.isDebugEnabled()) { + LOGGER + .debug( + "selectionKey <{}>: isValid <{}>, isConnectable <{}>, isAcceptable <{}>, isReadable <{}>, isWritable <{}>", + selectionKey, selectionKey.isValid(), selectionKey.isConnectable(), + selectionKey.isAcceptable(), selectionKey.isReadable(), selectionKey.isWritable() + ); + } if (selectionKey.isAcceptable()) { // ListenContext ListenContext listenContext = (ListenContext) selectionKey.attachment();