Bug-6005: PCErr generated while parsing of received PCRpt message is not sent out
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / BGPSessionImpl.java
index 6b00897598cf72022de22cafb660310a1a723617..c7cbd42fbdd4a73fa06e6a41bef0486c181e92f0 100644 (file)
@@ -269,7 +269,7 @@ public class BGPSessionImpl extends SimpleChannelInboundHandler<Notification> im
                     @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);
                         }