Include error trace when terminating session.
Change-Id: I02faabd68cf8f9ad89dc0273e9a85641d12c8db6
Signed-off-by: Robert Varga <[email protected]>
changeState(State.FAILED);
channel.close().addListener(future -> {
- if (future.isSuccess()) {
- LOG.debug("Channel {} closed: success", channel);
+ final var cause = future.cause();
+ if (cause != null) {
+ LOG.warn("Channel {} closed: fail", channel, cause);
} else {
- LOG.warn("Channel {} closed: fail", channel);
+ LOG.debug("Channel {} closed: success", channel);
}
});
}