Throwables should not be formatted, fix that. Also rework
logging for null tunnels.
Change-Id: I1dbf1b3ce79bbb32b5dbc65b125b405910f7dc88
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
public int serialize(final TunnelIdentifier tunnel, final ByteBuf tunnelBuffer) {
if (tunnel == null) {
- LOG.debug("Skipping serialization of PMSI Tunnel Attribute {}");
+ LOG.debug("Skipping serialization of null PMSI Tunnel Attribute");
return NO_TUNNEL_INFORMATION_PRESENT;
}
final TunnelIdentifierSerializer serializer = this.handlers.getSerializer(tunnel.getImplementedInterface());
@Override
public void onFailure(final Throwable throwable) {
- LOG.warn("Failed removing peers {}", throwable);
+ LOG.warn("Failed removing peers", throwable);
}
}, MoreExecutors.directExecutor());
return done;
synchronized (this.lock) {
if (PCCReconnectPromise.this.isCancelled()) {
if (cf.isSuccess()) {
- PCCReconnectPromise.LOG.debug("Closing channels for cancelled promise {}");
+ PCCReconnectPromise.LOG.debug("Closing channels for cancelled promise {}",
+ PCCReconnectPromise.this);
cf.channel().close();
}
} else if (cf.isSuccess()) {