Skip to content

Commit

Permalink
modify exceptionCaught
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe committed Apr 11, 2024
1 parent d5bb24e commit eb23fbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,10 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws E

if (stream != null) {
if (cause instanceof LogProxyClientException) {
stream.triggerException((LogProxyClientException) cause);
if (((LogProxyClientException) cause).needStop()) {
stream.triggerException((LogProxyClientException) cause);
stream.stop();
}

} else {
stream.triggerReconnect();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ public void onException(LogProxyClientException e) {

LogProxyClientException clientException = exception.get();
Assert.assertNotNull(clientException);
LOG.info("Caught exception: {}, cause: {}", clientException, clientException.getCause());
Assert.assertTrue(clientException.getMessage().contains("Something is going wrong"));
}

Expand Down

0 comments on commit eb23fbe

Please sign in to comment.