打印throwable的完整日志

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.17.0</version>
</dependency>
    public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
        if (evt instanceof SslHandshakeCompletionEvent) {
            SslHandshakeCompletionEvent event = (SslHandshakeCompletionEvent) evt;
            if (!event.isSuccess()) {
                String fullStackTrace = ExceptionUtils.getStackTrace(event.cause());
                log.error("SSL Handshake failed for {}: {}",
                        ctx.channel().remoteAddress(),
                        fullStackTrace);
            }


        }
    }