Replace LOGGER by LOG 52/57952/6
authorDavid Suarez <david.suarez.fuentes@ericsson.com>
Fri, 2 Jun 2017 15:39:38 +0000 (17:39 +0200)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 13 Jun 2017 00:57:59 +0000 (17:57 -0700)
Replace LOGGER by LOG to follow the OpenDaylight recommendations.

https://wiki.opendaylight.org/view/BestPractices/Logging_Best_Practices

Change-Id: Idad0d8a3d38e51dc5e0fd3d3e7d41a4b6c129eb1
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
19 files changed:
integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronNetworkTests.java
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronCRUDInterfaces.java
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronObject.java
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronResourceMapPropertyAdapter.java
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronSubnet.java
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronSubnetIpAllocationPool.java
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronL2gatewayConnectionNorthbound.java
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronL2gatewayNorthbound.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/AbstractNeutronInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronBgpvpnInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronFloatingIpInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronLoadBalancerHealthMonitorInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronLoadBalancerPoolInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronSFCFlowClassifierInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronSFCPortChainInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronSFCPortPairGroupInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronSFCPortPairInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronSecurityRuleInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronTranscriberProvider.java

index 6d3ce6054b69418e0b84eeab35f4df416bbbcf1e..292d2a36115d22a3533927d6d6fbf42878e00573 100644 (file)
@@ -23,7 +23,7 @@ public class NeutronNetworkTests {
 
     String base;
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronNetworkTests.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronNetworkTests.class);
 
     public NeutronNetworkTests(String base) {
         this.base = base;
@@ -35,7 +35,7 @@ public class NeutronNetworkTests {
             URL url = new URL(urlS);
             HttpURLConnection httpConn = ITNeutronE2E.httpURLConnectionFactoryGet(url);
             if (httpConn.getResponseCode() != 200) {
-                LOGGER.info("trial " + Integer.toString(retry) + ": failed with: "
+                LOG.info("trial " + Integer.toString(retry) + ": failed with: "
                         + Integer.toString(httpConn.getResponseCode()));
                 Thread.sleep(1000);
             } else {
index b6ce88cabba769149e13a184bf55ca90da7c077a..7923aaccccf26f265a8c8fccb5c4e0e18dfcec29 100644 (file)
@@ -17,7 +17,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public final class NeutronCRUDInterfaces {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronCRUDInterfaces.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronCRUDInterfaces.class);
 
     private NeutronCRUDInterfaces() {
         throw new UnsupportedOperationException("NeutronCRUDInterfaces class shouldn't be instantiated");
@@ -32,7 +32,7 @@ public final class NeutronCRUDInterfaces {
                 return bundleCtx.getService(service);
             }
         } catch (InvalidSyntaxException e) {
-            LOGGER.error("Error in getInstances", e);
+            LOG.error("Error in getInstances", e);
         }
         return null;
     }
index 8fcaf78074f0201cfffd0ff8d29e740602645ab3..451774b1169a50aa577b34e8402380aa4bc5c5ee 100644 (file)
@@ -29,7 +29,7 @@ public abstract class NeutronObject<T extends NeutronObject> extends NeutronID
     // T extends NeutronObject as 0th type argument. Used by extractFields()
     private static final int NEUTRON_OBJECT_CLASS_TYPE_INDEX = 0;
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronFirewallRule.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronFirewallRule.class);
 
     private static final long serialVersionUID = 1L;
 
@@ -127,7 +127,7 @@ public abstract class NeutronObject<T extends NeutronObject> extends NeutronID
         }
         for (String s : fields) {
             if (!extractField(s, ans)) {
-                LOGGER.warn("Unknown {} {}.", cls.getSimpleName(), s);
+                LOG.warn("Unknown {} {}.", cls.getSimpleName(), s);
             }
         }
         return ans;
index e9354f6032e358cc11b397d7deaf65e408e58b83..50662825aeb41f1464cf7cb74d6bff344978d2c9 100644 (file)
@@ -22,7 +22,7 @@ import org.w3c.dom.NodeList;
 import org.w3c.dom.Text;
 
 public final class NeutronResourceMapPropertyAdapter extends XmlAdapter<Object, Map<String, String>> {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronResourceMapPropertyAdapter.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronResourceMapPropertyAdapter.class);
 
     @Override
     public Map<String, String> unmarshal(Object domTree) {
@@ -54,7 +54,7 @@ public final class NeutronResourceMapPropertyAdapter extends XmlAdapter<Object,
             }
             return customXml;
         } catch (javax.xml.parsers.ParserConfigurationException e) {
-            LOGGER.error("ParserConfigurationException", e);
+            LOG.error("ParserConfigurationException", e);
         }
 
         return null;
index c5f6bf9c0945a56d2dcf4ce87266e8cdbf304c50..593f7931e4ce2a8ee846b10d7857d27d4364fde7 100644 (file)
@@ -26,7 +26,7 @@ import org.slf4j.LoggerFactory;
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
 public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> implements Serializable {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronCRUDInterfaces.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronCRUDInterfaces.class);
 
     private static final long serialVersionUID = 1L;
     private static final int IPV4_VERSION = 4;
@@ -216,7 +216,7 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
                     return false;
                 }
             } catch (IllegalArgumentException e) {
-                LOGGER.warn("Failure in isValidCIDR()", e);
+                LOG.warn("Failure in isValidCIDR()", e);
                 return false;
             }
             return true;
@@ -289,7 +289,7 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
                         allocationPools = source.splitPool(gatewayIp);
                     }
                 } catch (IllegalArgumentException e) {
-                    LOGGER.warn("Failure in initDefault()", e);
+                    LOG.warn("Failure in initDefault()", e);
                     return;
                 }
             }
@@ -327,7 +327,7 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
                 SubnetInfo info = util.getInfo();
                 return info.isInRange(ipAddress);
             } catch (IllegalArgumentException e) {
-                LOGGER.warn("Failure in isValidIp()", e);
+                LOG.warn("Failure in isValidIp()", e);
                 return false;
             }
         }
index ea61aaba789ec8aedef36f8e565ec1ea1d79210d..d24f821047aca1f1e8d0eb64c3de83040b2515c2 100644 (file)
@@ -25,7 +25,7 @@ import org.slf4j.LoggerFactory;
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
 public final class NeutronSubnetIpAllocationPool implements Serializable {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronSubnetIpAllocationPool.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronSubnetIpAllocationPool.class);
 
     private static final long serialVersionUID = 1L;
 
@@ -169,7 +169,7 @@ public final class NeutronSubnetIpAllocationPool implements Serializable {
         try {
             return Inet6Address.getByAddress(ipv4BigInteger.toByteArray()).getHostAddress();
         } catch (UnknownHostException e) {
-            LOGGER.error("bigIntegerToIp", e);
+            LOG.error("bigIntegerToIp", e);
             return "ERROR";
         }
     }
index e77f2db1bc6e00316b35956cc6b9c5a2e663e66e..802e1d71e455fd2edfc3067acb67a843e59daf8d 100644 (file)
@@ -49,7 +49,7 @@ import org.slf4j.LoggerFactory;
 public final class NeutronL2gatewayConnectionNorthbound extends AbstractNeutronNorthbound<NeutronL2gatewayConnection,
         NeutronL2gatewayConnectionRequest, INeutronL2gatewayConnectionCRUD> {
 
-    static final Logger LOGGER = LoggerFactory.getLogger(NeutronL2gatewayConnectionNorthbound.class);
+    static final Logger LOG = LoggerFactory.getLogger(NeutronL2gatewayConnectionNorthbound.class);
 
     private static final String RESOURCE_NAME = "L2gatewayConnection";
 
@@ -76,7 +76,7 @@ public final class NeutronL2gatewayConnectionNorthbound extends AbstractNeutronN
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
 
     public Response createL2gatewayConnection(final NeutronL2gatewayConnectionRequest input) {
-        LOGGER.debug("createL2GatewayConnection   NeutronL2GatewayConnectionRequest");
+        LOG.debug("createL2GatewayConnection   NeutronL2GatewayConnectionRequest");
         return create(input);
     }
 
index d9ba5a76ebae2baf199a7c6271eed36bff8ced39..acd14eee652582d97a49fd5920cfc90ebf3e463b 100644 (file)
@@ -48,7 +48,7 @@ import org.slf4j.LoggerFactory;
 @Path("/l2-gateways")
 public final class NeutronL2gatewayNorthbound
         extends AbstractNeutronNorthbound<NeutronL2gateway, NeutronL2gatewayRequest, INeutronL2gatewayCRUD> {
-    static final Logger LOGGER = LoggerFactory.getLogger(NeutronL2gatewayNorthbound.class);
+    static final Logger LOG = LoggerFactory.getLogger(NeutronL2gatewayNorthbound.class);
 
     private static final String RESOURCE_NAME = "L2gateway";
 
@@ -75,7 +75,7 @@ public final class NeutronL2gatewayNorthbound
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
 
     public Response createL2gateway(final NeutronL2gatewayRequest input) {
-        LOGGER.debug("CreateL2gateway     NeutronL2gatewayRequest");
+        LOG.debug("CreateL2gateway     NeutronL2gatewayRequest");
         return create(input);
     }
 
index cee364351bdc628d7f849248d1a7255ec120c930..92474cc78e1283c01d71a58b3af918a401d35a38 100644 (file)
@@ -57,7 +57,7 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
     // S extends INeutronObject<S> as 3rd type argument
     private static final int NEUTRON_OBJECT_TYPE_INDEX = 3;
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(AbstractNeutronInterface.class);
+    private static final Logger LOG = LoggerFactory.getLogger(AbstractNeutronInterface.class);
     private static final int DEDASHED_UUID_LENGTH = 32;
     private static final int DEDASHED_UUID_START = 0;
     private static final int DEDASHED_UUID_DIV1 = 8;
@@ -142,7 +142,7 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
             if (neutronObject.getID() != null) {
                 setUuid.invoke(builder, toUuid(neutronObject.getID()));
             } else {
-                LOGGER.warn("Attempting to write neutron object {} without UUID", builderClass.getSimpleName());
+                LOG.warn("Attempting to write neutron object {} without UUID", builderClass.getSimpleName());
             }
             if (neutronObject.getTenantID() != null && !neutronObject.getTenantID().isEmpty()) {
                 setTenantId.invoke(builder, toUuid(neutronObject.getTenantID()));
@@ -249,7 +249,7 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
                     result = optional.get();
                 }
             } catch (final ReadFailedException e) {
-                LOGGER.warn("Failed to read {}", path, e);
+                LOG.warn("Failed to read {}", path, e);
             }
         }
         return result;
@@ -272,7 +272,7 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
             addMd(neutronObject, tx);
             return true;
         } catch (InterruptedException | ExecutionException e) {
-            LOGGER.warn("Transaction failed", e);
+            LOG.warn("Transaction failed", e);
         }
         return false;
     }
@@ -297,11 +297,11 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
                 return true;
             } catch (InterruptedException | ExecutionException e) {
                 if (e.getCause() instanceof OptimisticLockFailedException) {
-                    LOGGER.warn("Got OptimisticLockFailedException - {} {}", neutronObject, retries);
+                    LOG.warn("Got OptimisticLockFailedException - {} {}", neutronObject, retries);
                     continue;
                 }
                 // TODO: rethrow exception. don't mask exception
-                LOGGER.error("Transaction failed", e);
+                LOG.error("Transaction failed", e);
             }
             break;
         }
@@ -323,7 +323,7 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
             removeMd(item, tx);
             return true;
         } catch (InterruptedException | ExecutionException e) {
-            LOGGER.warn("Transaction failed", e);
+            LOG.warn("Transaction failed", e);
         }
         return false;
     }
@@ -396,7 +396,7 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
                 allNeutronObjects.add(fromMd(dataObject));
             }
         }
-        LOGGER.debug("Exiting _getAll, Found {} OpenStackFirewall", allNeutronObjects.size());
+        LOG.debug("Exiting _getAll, Found {} OpenStackFirewall", allNeutronObjects.size());
         final List<S> ans = new ArrayList<>();
         ans.addAll(allNeutronObjects);
         return ans;
@@ -428,11 +428,11 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
                 return add(input, tx);
             } catch (InterruptedException | ExecutionException e) {
                 if (e.getCause() instanceof OptimisticLockFailedException) {
-                    LOGGER.warn("Got OptimisticLockFailedException - {} {}", input, retries);
+                    LOG.warn("Got OptimisticLockFailedException - {} {}", input, retries);
                     continue;
                 }
                 // TODO: rethrow exception. don't mask exception
-                LOGGER.error("Transaction failed", e);
+                LOG.error("Transaction failed", e);
             }
             break;
         }
@@ -458,11 +458,11 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
                 return remove(uuid, tx);
             } catch (InterruptedException | ExecutionException e) {
                 if (e.getCause() instanceof OptimisticLockFailedException) {
-                    LOGGER.warn("Got OptimisticLockFailedException - {} {}", uuid, retries);
+                    LOG.warn("Got OptimisticLockFailedException - {} {}", uuid, retries);
                     continue;
                 }
                 // TODO: rethrow exception. don't mask exception
-                LOGGER.error("Transaction failed", e);
+                LOG.error("Transaction failed", e);
             }
             break;
         }
@@ -489,11 +489,11 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
                 return update(uuid, delta, tx);
             } catch (InterruptedException | ExecutionException e) {
                 if (e.getCause() instanceof OptimisticLockFailedException) {
-                    LOGGER.warn("Got OptimisticLockFailedException - {} {} {}", uuid, delta, retries);
+                    LOG.warn("Got OptimisticLockFailedException - {} {} {}", uuid, delta, retries);
                     continue;
                 }
                 // TODO: rethrow exception. don't mask exception
-                LOGGER.error("Transaction failed", e);
+                LOG.error("Transaction failed", e);
             }
             break;
         }
index 05d26dc3ef8e204dc90f46887fac999617f2b699..5936c3eee6e607aeab9ac171deee19d72e9595fd 100644 (file)
@@ -22,12 +22,9 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.bgpvpns.rev150903.b
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.bgpvpns.rev150903.bgpvpns.attributes.bgpvpns.Bgpvpn;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.bgpvpns.rev150903.bgpvpns.attributes.bgpvpns.BgpvpnBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.bgpvpns.rev150903.bgpvpns.attributes.bgpvpns.BgpvpnKey;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 public final class NeutronBgpvpnInterface extends AbstractNeutronInterface<Bgpvpn, Bgpvpns, BgpvpnKey, NeutronBgpvpn>
         implements INeutronBgpvpnCRUD {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronBgpvpnInterface.class);
 
     private static final ImmutableBiMap<Class<? extends BgpvpnTypeBase>,
             String> BGPVPN_TYPE_MAP = new ImmutableBiMap.Builder<Class<? extends BgpvpnTypeBase>, String>()
index eeb3c1a8779d6e223440fabe43da125bc3fed984..0e11240f29602ee8c66bde74bfa443a5bfef1a82 100644 (file)
@@ -23,7 +23,7 @@ import org.slf4j.LoggerFactory;
 public final class NeutronFloatingIpInterface
         extends AbstractNeutronInterface<Floatingip, Floatingips, FloatingipKey, NeutronFloatingIp>
         implements INeutronFloatingIpCRUD {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronFloatingIpInterface.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronFloatingIpInterface.class);
 
     NeutronFloatingIpInterface(DataBroker db) {
         super(FloatingipBuilder.class, db);
@@ -63,7 +63,7 @@ public final class NeutronFloatingIpInterface
         if (floatingIp.getID() != null) {
             floatingipBuilder.setUuid(toUuid(floatingIp.getID()));
         } else {
-            LOGGER.warn("Attempting to write neutron floating IP without UUID");
+            LOG.warn("Attempting to write neutron floating IP without UUID");
         }
         return floatingipBuilder.build();
     }
index 3cf5e236fc7778f020649e5411d5916fa019bfae..9584b7c5414913d2c2af07941cf7aedfe4cfe82e 100644 (file)
@@ -32,7 +32,7 @@ public final class NeutronLoadBalancerHealthMonitorInterface
         extends AbstractNeutronInterface<Healthmonitor, Healthmonitors, HealthmonitorKey,
                                          NeutronLoadBalancerHealthMonitor>
         implements INeutronLoadBalancerHealthMonitorCRUD {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronLoadBalancerHealthMonitorInterface.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronLoadBalancerHealthMonitorInterface.class);
 
     private static final ImmutableBiMap<Class<? extends ProbeBase>,
             String> PROBE_MAP = new ImmutableBiMap.Builder<Class<? extends ProbeBase>, String>()
@@ -88,7 +88,7 @@ public final class NeutronLoadBalancerHealthMonitorInterface
         if (healthMonitor.getID() != null) {
             healthmonitorBuilder.setUuid(toUuid(healthMonitor.getID()));
         } else {
-            LOGGER.warn("Attempting to write neutron laod balancer health monitor without UUID");
+            LOG.warn("Attempting to write neutron laod balancer health monitor without UUID");
         }
         return healthmonitorBuilder.build();
     }
@@ -132,7 +132,7 @@ public final class NeutronLoadBalancerHealthMonitorInterface
         if (healthMonitor.getUuid() != null) {
             answer.setID(healthMonitor.getUuid().getValue());
         } else {
-            LOGGER.warn("Attempting to write neutron laod balancer health monitor without UUID");
+            LOG.warn("Attempting to write neutron laod balancer health monitor without UUID");
         }
         return answer;
     }
index 9ff0cd0fc89dab282b4baf9740f037da06f27562..7c944d2e0e31b7477301bc72b1003b41647534da 100644 (file)
@@ -50,7 +50,7 @@ import org.slf4j.LoggerFactory;
 public final class NeutronLoadBalancerPoolInterface
         extends AbstractNeutronInterface<Pool, Pools, PoolKey, NeutronLoadBalancerPool>
         implements INeutronLoadBalancerPoolCRUD {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronLoadBalancerPoolInterface.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronLoadBalancerPoolInterface.class);
 
     private static final ImmutableBiMap<Class<? extends ProtocolBase>,
             String> PROTOCOL_MAP = new ImmutableBiMap.Builder<Class<? extends ProtocolBase>, String>()
@@ -106,7 +106,7 @@ public final class NeutronLoadBalancerPoolInterface
         if (pool.getID() != null) {
             poolBuilder.setUuid(toUuid(pool.getID()));
         } else {
-            LOGGER.warn("Attempting to write neutron load balancer pool without UUID");
+            LOG.warn("Attempting to write neutron load balancer pool without UUID");
         }
         return poolBuilder.build();
     }
@@ -183,7 +183,7 @@ public final class NeutronLoadBalancerPoolInterface
                 allLoadBalancerPoolMembers.add(fromMemberMd(member));
             }
         }
-        LOGGER.debug("Exiting getLoadBalancerPoolMembers, Found {} OpenStackLoadBalancerPoolMember",
+        LOG.debug("Exiting getLoadBalancerPoolMembers, Found {} OpenStackLoadBalancerPoolMember",
                 allLoadBalancerPoolMembers.size());
         final List<NeutronLoadBalancerPoolMember> ans = new ArrayList<>();
         ans.addAll(allLoadBalancerPoolMembers);
@@ -300,7 +300,7 @@ public final class NeutronLoadBalancerPoolInterface
                     result = optional.get();
                 }
             } catch (final ReadFailedException e) {
-                LOGGER.warn("Failed to read {}", path, e);
+                LOG.warn("Failed to read {}", path, e);
             }
         }
         transaction.close();
@@ -321,7 +321,7 @@ public final class NeutronLoadBalancerPoolInterface
         try {
             future.get();
         } catch (InterruptedException | ExecutionException e) {
-            LOGGER.warn("Transation failed ", e);
+            LOG.warn("Transation failed ", e);
             return false;
         }
         return true;
@@ -335,7 +335,7 @@ public final class NeutronLoadBalancerPoolInterface
         try {
             future.get();
         } catch (InterruptedException | ExecutionException e) {
-            LOGGER.warn("Transation failed ", e);
+            LOG.warn("Transation failed ", e);
             return false;
         }
         return true;
index 3e9f446cfc2b6088e11db61cf943e72c2524fbc8..667e24410838898a60bcf7fe4d571bb4d6e597bd 100644 (file)
@@ -43,7 +43,7 @@ public final class NeutronSFCFlowClassifierInterface
                                          NeutronSFCFlowClassifier>
         implements INeutronSFCFlowClassifierCRUD {
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronSFCFlowClassifierInterface.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronSFCFlowClassifierInterface.class);
 
     private static final ImmutableBiMap<Class<? extends EthertypeBase>,
             String> ETHERTYPE_MAP = new ImmutableBiMap.Builder<Class<? extends EthertypeBase>, String>()
@@ -66,7 +66,7 @@ public final class NeutronSFCFlowClassifierInterface
     @Override
     protected SfcFlowClassifier toMd(NeutronSFCFlowClassifier neutronClassifier) {
 
-        LOGGER.trace("toMd: REST SFC Flow Classifier data : {}", neutronClassifier);
+        LOG.trace("toMd: REST SFC Flow Classifier data : {}", neutronClassifier);
 
         SfcFlowClassifierBuilder result = new SfcFlowClassifierBuilder();
         toMdBaseAttributes(neutronClassifier, result);
@@ -119,13 +119,13 @@ public final class NeutronSFCFlowClassifierInterface
             }
             result.setL7Parameter(l7Params);
         }
-        LOGGER.trace("toMd: Yang SFC Flow Classifier data : {}", result);
+        LOG.trace("toMd: Yang SFC Flow Classifier data : {}", result);
         return result.build();
     }
 
     @Override
     protected NeutronSFCFlowClassifier fromMd(SfcFlowClassifier mdClassifier) {
-        LOGGER.trace("fromMd: Yang SFC flow classifier data : {}", mdClassifier);
+        LOG.trace("fromMd: Yang SFC flow classifier data : {}", mdClassifier);
         NeutronSFCFlowClassifier result = new NeutronSFCFlowClassifier();
         fromMdBaseAttributes(mdClassifier, result);
         if (mdClassifier.getEthertype() != null) {
@@ -165,7 +165,7 @@ public final class NeutronSFCFlowClassifierInterface
             }
             result.setL7Parameters(l7Param);
         }
-        LOGGER.trace("fromMd: REST SFC Flow Classifier data : {}", result);
+        LOG.trace("fromMd: REST SFC Flow Classifier data : {}", result);
         return result;
     }
 }
index 2fe1ff2208f77180b22cbc5ab1f58078cd34c779..65f38f761640a6cdac038b43ab6655ff4adb16b8 100644 (file)
@@ -31,7 +31,7 @@ public final class NeutronSFCPortChainInterface
         extends AbstractNeutronInterface<PortChain, PortChains, PortChainKey, NeutronSFCPortChain>
         implements INeutronSFCPortChainCRUD {
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronSFCPortChainInterface.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronSFCPortChainInterface.class);
 
     NeutronSFCPortChainInterface(DataBroker db) {
         super(PortChainBuilder.class, db);
@@ -45,7 +45,7 @@ public final class NeutronSFCPortChainInterface
     @Override
     protected PortChain toMd(NeutronSFCPortChain neutronPortChain) {
 
-        LOGGER.trace("toMd: REST SFC Port Chain data : {}", neutronPortChain);
+        LOG.trace("toMd: REST SFC Port Chain data : {}", neutronPortChain);
 
         PortChainBuilder result = new PortChainBuilder();
         toMdBaseAttributes(neutronPortChain, result);
@@ -74,13 +74,13 @@ public final class NeutronSFCPortChainInterface
             }
             result.setChainParameters(chainParams);
         }
-        LOGGER.trace("toMd: Yang SFC Port Chain data : {}", result);
+        LOG.trace("toMd: Yang SFC Port Chain data : {}", result);
         return result.build();
     }
 
     @Override
     protected NeutronSFCPortChain fromMd(PortChain mdPortChain) {
-        LOGGER.trace("fromMd: Yang SFC Port Chain data : {}", mdPortChain);
+        LOG.trace("fromMd: Yang SFC Port Chain data : {}", mdPortChain);
         NeutronSFCPortChain result = new NeutronSFCPortChain();
         fromMdBaseAttributes(mdPortChain, result);
         if (mdPortChain.getPortPairGroups() != null) {
@@ -104,7 +104,7 @@ public final class NeutronSFCPortChainInterface
             }
             result.setChainParameters(chainParams);
         }
-        LOGGER.trace("fromMd: REST SFC Port Chain data : {}", result);
+        LOG.trace("fromMd: REST SFC Port Chain data : {}", result);
         return result;
     }
 }
index b4e23ad152c336f2d94dff8df88bb0fa99bd6ad2..561d21dc748a36bcf6a8d7dfb5e0263a93750d39 100644 (file)
@@ -27,7 +27,7 @@ public final class NeutronSFCPortPairGroupInterface
         extends AbstractNeutronInterface<PortPairGroup, PortPairGroups, PortPairGroupKey, NeutronSFCPortPairGroup>
         implements INeutronSFCPortPairGroupCRUD {
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronSFCPortPairGroupInterface.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronSFCPortPairGroupInterface.class);
 
     NeutronSFCPortPairGroupInterface(DataBroker db) {
         super(PortPairGroupBuilder.class, db);
@@ -36,7 +36,7 @@ public final class NeutronSFCPortPairGroupInterface
     @Override
     protected PortPairGroup toMd(NeutronSFCPortPairGroup neutronPortPairGroup) {
 
-        LOGGER.trace("toMd: REST SFC Port Pair Group data : {}", neutronPortPairGroup);
+        LOG.trace("toMd: REST SFC Port Pair Group data : {}", neutronPortPairGroup);
 
         PortPairGroupBuilder result = new PortPairGroupBuilder();
         toMdBaseAttributes(neutronPortPairGroup, result);
@@ -47,13 +47,13 @@ public final class NeutronSFCPortPairGroupInterface
             }
             result.setPortPairs(portPairs);
         }
-        LOGGER.trace("toMd: Yang SFC Port Pair Group data : {}", result);
+        LOG.trace("toMd: Yang SFC Port Pair Group data : {}", result);
         return result.build();
     }
 
     @Override
     protected NeutronSFCPortPairGroup fromMd(PortPairGroup mdPortPairGroup) {
-        LOGGER.trace("fromMd: Yang SFC Port Pair Group data : {}", mdPortPairGroup);
+        LOG.trace("fromMd: Yang SFC Port Pair Group data : {}", mdPortPairGroup);
         NeutronSFCPortPairGroup result = new NeutronSFCPortPairGroup();
         fromMdBaseAttributes(mdPortPairGroup, result);
         if (mdPortPairGroup.getPortPairs() != null) {
@@ -63,7 +63,7 @@ public final class NeutronSFCPortPairGroupInterface
             }
             result.setPortPairs(portPairsUUID);
         }
-        LOGGER.trace("fromMd: REST SFC Port Pair Group data : {}", result);
+        LOG.trace("fromMd: REST SFC Port Pair Group data : {}", result);
         return result;
     }
 
index 40df94d46c1440b2f6e5a67d34ddf52893e7b3cf..fb28ca4f80a4ebc0f089c7598598ad386c1be30c 100644 (file)
@@ -31,7 +31,7 @@ public final class NeutronSFCPortPairInterface
         extends AbstractNeutronInterface<PortPair, PortPairs, PortPairKey, NeutronSFCPortPair>
         implements INeutronSFCPortPairCRUD {
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronSFCPortPairInterface.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronSFCPortPairInterface.class);
 
     NeutronSFCPortPairInterface(DataBroker db) {
         super(PortPairBuilder.class, db);
@@ -40,7 +40,7 @@ public final class NeutronSFCPortPairInterface
     @Override
     protected PortPair toMd(NeutronSFCPortPair neutronPortPair) {
 
-        LOGGER.trace("toMd: REST SFC Port Pair data : {}", neutronPortPair);
+        LOG.trace("toMd: REST SFC Port Pair data : {}", neutronPortPair);
 
         PortPairBuilder result = new PortPairBuilder();
         toMdBaseAttributes(neutronPortPair, result);
@@ -61,13 +61,13 @@ public final class NeutronSFCPortPairInterface
             }
             result.setServiceFunctionParameters(serviceFunctionParams);
         }
-        LOGGER.trace("toMd: Yang SFC Port Pair data : {}", result);
+        LOG.trace("toMd: Yang SFC Port Pair data : {}", result);
         return result.build();
     }
 
     @Override
     protected NeutronSFCPortPair fromMd(PortPair mdPortPair) {
-        LOGGER.trace("fromMd: Yang SFC Port Pair data : {}", mdPortPair);
+        LOG.trace("fromMd: Yang SFC Port Pair data : {}", mdPortPair);
         NeutronSFCPortPair result = new NeutronSFCPortPair();
         fromMdBaseAttributes(mdPortPair, result);
         if (mdPortPair.getIngress() != null) {
@@ -83,7 +83,7 @@ public final class NeutronSFCPortPairInterface
             }
             result.setServiceFunctionParameters(serviceFunctionParam);
         }
-        LOGGER.trace("fromMd: REST SFC Port Pair data : {}", result);
+        LOG.trace("fromMd: REST SFC Port Pair data : {}", result);
         return result;
     }
 
index a35ec17cbaaa1b7ac28f0611c2bc5d5b67a60797..47618aa0fcfbf4a2a5554a936bd69a09e670c7a4 100644 (file)
@@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory;
 public final class NeutronSecurityRuleInterface extends
         AbstractNeutronInterface<SecurityRule, SecurityRules, SecurityRuleKey, NeutronSecurityRule>
         implements INeutronSecurityRuleCRUD {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronSecurityRuleInterface.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronSecurityRuleInterface.class);
 
     private static final ImmutableBiMap<Class<? extends DirectionBase>,
             String> DIRECTION_MAP = new ImmutableBiMap.Builder<Class<? extends DirectionBase>, String>()
@@ -139,7 +139,7 @@ public final class NeutronSecurityRuleInterface extends
         if (securityRule.getID() != null) {
             securityRuleBuilder.setUuid(toUuid(securityRule.getID()));
         } else {
-            LOGGER.warn("Attempting to write neutron securityRule without UUID");
+            LOG.warn("Attempting to write neutron securityRule without UUID");
         }
         return securityRuleBuilder.build();
     }
index 79697024172fe5f0787a3be6bc574040614d114a..7c1bd5920c422fba66a2f64577b087cdf6a787e9 100644 (file)
@@ -48,7 +48,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public final class NeutronTranscriberProvider implements AutoCloseable, NeutronTranscriber {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronTranscriberProvider.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NeutronTranscriberProvider.class);
 
     private BundleContext context;
     private final DataBroker db;
@@ -56,7 +56,7 @@ public final class NeutronTranscriberProvider implements AutoCloseable, NeutronT
     private final List<AutoCloseable> neutronInterfaces = new ArrayList<>();
 
     public NeutronTranscriberProvider(BundleContext context, DataBroker db) {
-        LOGGER.debug("DataBroker set to: {}", db);
+        LOG.debug("DataBroker set to: {}", db);
         this.context = Preconditions.checkNotNull(context);
         this.db = Preconditions.checkNotNull(db);
     }