Revert "Make logging conditional." 85/21985/2
authorDana Kutenicsova <dkutenic@cisco.com>
Fri, 5 Jun 2015 13:41:50 +0000 (13:41 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 5 Jun 2015 20:58:58 +0000 (20:58 +0000)
This reverts commit 072bd7ac321f3d7cd9dafc51596a3ff4506b0e53.

Change-Id: I07ae45fac0ea424fe83b51ab940536f2dabd1d05
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/AbstractRouteEntry.java

index 91092a69ac09a787ac011b942816bdcaa0f6e373..c38c4c64d91e729b61b10a1aac9abdbcb61003f5 100644 (file)
@@ -48,9 +48,7 @@ abstract class AbstractRouteEntry {
         }
 
         this.offsets.setValue(this.values, offset, attributes);
-        if (LOG.isTraceEnabled()) {
-            LOG.trace("Added route from {} attributes {}", routerId, attributes);
-        }
+        LOG.trace("Added route from {} attributes {}", routerId, attributes);
         return offset;
     }
 
@@ -82,18 +80,14 @@ abstract class AbstractRouteEntry {
         for (int i = 0; i < this.offsets.size(); ++i) {
             final UnsignedInteger routerId = this.offsets.getRouterId(i);
             final ContainerNode attributes = this.offsets.getValue(this.values, i);
-            if (LOG.isTraceEnabled()) {
-                LOG.trace("Processing router id {} attributes {}", routerId, attributes);
-            }
+            LOG.trace("Processing router id {} attributes {}", routerId, attributes);
             selector.processPath(routerId, attributes);
         }
 
         // Get the newly-selected best path.
         final BestPath newBestPath = selector.result();
         final boolean ret = !newBestPath.equals(this.bestPath);
-        if (LOG.isTraceEnabled()) {
-            LOG.trace("Previous best {}, current best {}, result {}", this.bestPath, newBestPath, ret);
-        }
+        LOG.trace("Previous best {}, current best {}, result {}", this.bestPath, newBestPath, ret);
         this.bestPath = newBestPath;
         return ret;
     }