Fix logging arguments 20/81420/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 5 Apr 2019 18:54:50 +0000 (20:54 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 6 Apr 2019 16:50:48 +0000 (18:50 +0200)
These are pointed out by upgraded spotbugs, fix them up.

Change-Id: I520c8be21d69c73c0ca9b51d15e63df158fd242a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 07fba4b036ae0df44f814f53b7d13a9fc79c0a75)
(cherry picked from commit f0b0a99508a36b2087b507ad1ab976255599f4af)

netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/CallhomeStatusReporter.java
netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/IetfZeroTouchCallHomeServerProvider.java
netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/MasterSalFacade.java
netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/NetconfTopologyContext.java
netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/NetconfTopologyManager.java
netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/impl/NetconfTopologyImpl.java

index 8a4979502b29b1521144d07e71fa3895c254190d..ddc18b2d745c1e6aa69e80b2ba5bdade556d4b3c 100644 (file)
@@ -275,7 +275,7 @@ class CallhomeStatusReporter implements DataTreeChangeListener<Node>, StatusReco
         try {
             return devicesFuture.get().orNull();
         } catch (ExecutionException | InterruptedException e) {
-            LOG.error("Error trying to read the whitelist devices: {}", e);
+            LOG.error("Error trying to read the whitelist devices", e);
             return null;
         }
     }
index 8bb21ffa51b3582add48ef346dafd5ec00a5d70f..076d83a04fba5d1bc4d5a943c44f7aef00b43d89 100644 (file)
@@ -168,7 +168,7 @@ public class IetfZeroTouchCallHomeServerProvider implements AutoCloseable, DataT
                 readAndUpdateStatus(confDevice);
             }
         } catch (ExecutionException | InterruptedException e) {
-            LOG.error("Error trying to read the whitelist devices: {}", e);
+            LOG.error("Error trying to read the whitelist devices", e);
         }
     }
 
index 8e13f630d8fc267a34ce5af2786ff56871f8e7b0..8474e6deaa512ba2e310975766bf71cf888ec37d 100644 (file)
@@ -74,7 +74,7 @@ class MasterSalFacade implements AutoCloseable, RemoteDeviceHandler<NetconfSessi
         // We do not support actions in clustered topology yet
         if (domActionService != null) {
             LOG.warn("{}: YANG 1.1 actions are not supported in clustered netconf topology, "
-                    + "DOMActionService will not be exposed for the device");
+                    + "DOMActionService will not be exposed for the device", id);
         }
 
         onDeviceConnected(remoteSchemaContext, sessionPreferences, domRpcService);
index 99b541b846d58d342b07cacdf61c7523356fa440..c66a7bcfd40c8785623e2222d110e889364787e7 100644 (file)
@@ -157,7 +157,7 @@ class NetconfTopologyContext implements ClusterSingletonService, AutoCloseable {
                 @Override
                 public void onComplete(final Throwable failure, final Object success) {
                     if (failure != null) {
-                        LOG.error("Failed to refresh master actor data: {}", failure);
+                        LOG.error("Failed to refresh master actor data", failure);
                         return;
                     }
                     remoteDeviceConnector.startRemoteDeviceConnection(newMasterSalFacade());
index 9dd0a22da18dd17fa1d17f7d1116d5bdec9923ff..1924b40bb0c72c8e93f486dc1eda4af00cf2dcb2 100644 (file)
@@ -252,7 +252,7 @@ public class NetconfTopologyManager
 
             @Override
             public void onFailure(@Nonnull final Throwable throwable) {
-                LOG.error("Unable to initialize netconf-topology, {}", throwable);
+                LOG.error("Unable to initialize netconf-topology", throwable);
             }
         }, MoreExecutors.directExecutor());
 
index 4a27320634cef58e6fcd3647d6a06e7d94b1e81a..2cdada3c7e0a0f5832098a1d58c3913b0320906d 100644 (file)
@@ -106,7 +106,7 @@ public class NetconfTopologyImpl extends AbstractNetconfTopology
 
             @Override
             public void onFailure(final Throwable throwable) {
-                LOG.error("Unable to initialize netconf-topology, {}", throwable);
+                LOG.error("Unable to initialize netconf-topology", throwable);
             }
         }, MoreExecutors.directExecutor());