Skip to content

Commit

Permalink
fix printout (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
kortemik authored Apr 8, 2024
1 parent 57cca98 commit 5a8d258
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/teragrep/rlp_03/EventLoop.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ else if (selectionKey.isConnectable()) {
connectionContext.handleEvent(selectionKey);
}
catch (CancelledKeyException cke) {
LOGGER.warn("SocketPoll.poll CancelledKeyException caught: {}", cke.getMessage());
LOGGER.warn("SocketPoll.poll CancelledKeyException caught: <{}>", cke.getMessage());
connectionContext.close();
}
}
Expand All @@ -153,7 +153,7 @@ public void close() {
selector.close();
}
catch (IOException ioException) {
LOGGER.warn("selector close threw", ioException);
LOGGER.warn("Selector.close() threw <{}>", ioException.getMessage(), ioException);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/teragrep/rlp_03/ListenContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void handleEvent(SelectionKey selectionKey) {
}
catch (CancelledKeyException cke) {
// thrown by accessing cancelled SelectionKey
LOGGER.warn("SocketPoll.poll CancelledKeyException caught: {}", cke.getMessage());
LOGGER.warn("SocketPoll.poll CancelledKeyException caught <{}>", cke.getMessage());
try {
selectionKey.channel().close();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/teragrep/rlp_03/client/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public CompletableFuture<AbstractMap.SimpleEntry<String, byte[]>> transmit(Strin
int txn = txnCounter.incrementAndGet();
relpFrameTX.setTransactionNumber(txn);
if (transactions.containsKey(txn)) {
throw new IllegalStateException("already pending txn <" + txn + ">");
throw new IllegalStateException("Already existing txn <" + txn + "> used.");
}
CompletableFuture<AbstractMap.SimpleEntry<String, byte[]>> future = new CompletableFuture<>();
transactions.put(txn, future);
Expand Down

0 comments on commit 5a8d258

Please sign in to comment.