Remove verbose logging in TransactUtils 57/40557/1
authorSam Hague <shague@redhat.com>
Mon, 20 Jun 2016 18:24:58 +0000 (14:24 -0400)
committerSam Hague <shague@redhat.com>
Mon, 20 Jun 2016 18:24:58 +0000 (14:24 -0400)
The two logs removed are repeated constantly for every transaction and don't add much value since this is a utility.

Change-Id: I8d66c9b87e42ad93f3f91da1a5a76e9cb70e12f6
Signed-off-by: Sam Hague <shague@redhat.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TransactUtils.java

index 26b9581fa0675e1eed73f19a85e2612bd8964f08..0877ac8459f2f1e64b3a021e71cb1f21f3d9432e 100644 (file)
@@ -48,8 +48,6 @@ import org.opendaylight.yangtools.yang.binding.Identifiable;
 import org.opendaylight.yangtools.yang.binding.Identifier;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import com.google.common.base.Predicates;
 import com.google.common.collect.ImmutableMap;
@@ -58,8 +56,6 @@ import com.google.common.collect.Maps;
 import com.google.common.collect.Sets;
 
 public class TransactUtils {
-    private static final Logger LOG = LoggerFactory.getLogger(TransactUtils.class);
-
     private static <T extends DataObject> Predicate<DataObjectModification<T>> hasDataBefore() {
         return new Predicate<DataObjectModification<T>>() {
             @Override
@@ -385,13 +381,9 @@ public class TransactUtils {
         if (child.getIdentifier() instanceof InstanceIdentifier.IdentifiableItem) {
             K key = (K) ((InstanceIdentifier.IdentifiableItem) child.getIdentifier()).getKey();
             KeyedInstanceIdentifier<N, K> extendedPath = path.child(item, key);
-            LOG.debug("Building a new child iid for {} with {} and key {}, resulting in {}",
-                    path, item, extendedPath);
             return extendedPath;
         } else {
             InstanceIdentifier<N> extendedPath = path.child(item);
-            LOG.debug("Building a new child iid for {} with {}, resulting in {}",
-                    path, item, extendedPath);
             return extendedPath;
         }
     }