@Override
public void operationComplete(final ChannelFuture f) {
if (!f.isSuccess()) {
- LOG.warn("Failed to send message {} to socket {}", msg, f.cause(), BGPSessionImpl.this.channel);
+ LOG.warn("Failed to send message {} to socket {}", msg, BGPSessionImpl.this.channel, f.cause());
} else {
LOG.trace("Message {} sent to socket {}", msg, BGPSessionImpl.this.channel);
}