Fix logging mismatches 89/81389/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Apr 2019 22:23:19 +0000 (00:23 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 4 Apr 2019 23:56:36 +0000 (23:56 +0000)
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>
bgp/extensions/mvpn/src/main/java/org/opendaylight/protocol/bgp/mvpn/spi/pojo/attributes/tunnel/identifier/SimpleTunnelIdentifierRegistry.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/config/BGPClusterSingletonService.java
pcep/pcc-mock/src/main/java/org/opendaylight/protocol/pcep/pcc/mock/protocol/PCCReconnectPromise.java

index 565ecb66a2e27827967a0688d5d44de5a198cfea..af0d3e9b38e7ed17d2acb4ef3ec17c7b2310bdfe 100644 (file)
@@ -42,7 +42,7 @@ public final class SimpleTunnelIdentifierRegistry {
 
     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());
index 188aac0ed2b796438b01fd4cdf243eea9090eb80..52e60cf48562ed33689036194741d40f1b1ecfcb 100644 (file)
@@ -120,7 +120,7 @@ public final class BGPClusterSingletonService implements ClusterSingletonService
 
             @Override
             public void onFailure(final Throwable throwable) {
-                LOG.warn("Failed removing peers {}", throwable);
+                LOG.warn("Failed removing peers", throwable);
             }
         }, MoreExecutors.directExecutor());
         return done;
index 1797f287daaa3f68f9b27ef1476d1d53912d6fe8..b9a07abcbe8742474e65f975bd325bc482eea480 100755 (executable)
@@ -96,7 +96,8 @@ final class PCCReconnectPromise extends DefaultPromise<PCEPSession> {
             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()) {