Skip to content

Commit

Permalink
Merge pull request #1649 from dilanSachi/remove-logs
Browse files Browse the repository at this point in the history
Remove adding cause to the error logs
  • Loading branch information
dilanSachi committed Jul 20, 2023
2 parents 9c6a588 + 4b1478c commit 280d4e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
ctx.writeAndFlush(Unpooled.EMPTY_BUFFER).addListener(ChannelFutureListener.CLOSE);
}
if (!cause.toString().contains(SSL) && !cause.toString().contains(SECURITY)) {
LOG.error("Exception occurred in HTTP/2 inbound channel", cause);
LOG.error("Exception occurred in HTTP/2 inbound channel", cause.getMessage());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
.addListener(ChannelFutureListener.CLOSE);
}
if (!cause.toString().contains(SSL) && !cause.toString().contains(SECURITY)) {
LOG.error("Exception occurred in HTTP inbound channel pipeline : {}", cause);
LOG.error("Exception occurred in HTTP inbound channel pipeline : {}", cause.getMessage());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exc
*/
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
LOG.error("Exception occurred in CertificateValidationHandler.", cause);
LOG.error("Exception occurred in CertificateValidationHandler.", cause.getMessage());
ctx.fireExceptionCaught(cause);
}
}
Expand Down

0 comments on commit 280d4e8

Please sign in to comment.