Migrate ListenableFutures.addErrorLogging() use 27/92627/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 23 Sep 2020 22:20:42 +0000 (00:20 +0200)
committerStephen Kitt <skitt@redhat.com>
Fri, 25 Sep 2020 09:18:22 +0000 (09:18 +0000)
This is the final user of this legacy method, migrate it.

Change-Id: I8bbfbb79e22943e10c57214b9bbf830d325f4d1f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
elanmanager/impl/src/main/java/org/opendaylight/netvirt/elan/l2gw/listeners/LocalUcastMacListener.java

index 7e92640d3e909fc0c58f1d19dc51ccf78d1a1862..8170b3bc0e88bec645f91593ed7a54f05cb91ce6 100644 (file)
@@ -37,7 +37,7 @@ import org.opendaylight.genius.utils.hwvtep.HwvtepHACache;
 import org.opendaylight.genius.utils.hwvtep.HwvtepSouthboundUtils;
 import org.opendaylight.infrautils.caches.CacheProvider;
 import org.opendaylight.infrautils.jobcoordinator.JobCoordinator;
-import org.opendaylight.infrautils.utils.concurrent.ListenableFutures;
+import org.opendaylight.infrautils.utils.concurrent.LoggingFutures;
 import org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener;
 import org.opendaylight.mdsal.binding.api.DataBroker;
 import org.opendaylight.mdsal.binding.api.DataObjectModification;
@@ -465,7 +465,7 @@ public class LocalUcastMacListener extends ChildListener<Node, LocalUcastMacs, S
         if (IS_PS_NODE_IID.test(nodeIid)) {
             return;
         }
-        ListenableFutures.addErrorLogging(txRunner.callWithNewReadWriteTransactionAndSubmit(OPERATIONAL, tx -> {
+        LoggingFutures.addErrorLogging(txRunner.callWithNewReadWriteTransactionAndSubmit(OPERATIONAL, tx -> {
             haOpClusteredListener.onGlobalNodeAdd(nodeIid, modification.getRootNode().getDataAfter(), tx);
         }), LOG, "Error processing added parent");
         if (!IS_HA_CHILD.test(nodeIid)) {