Rename static final variable 'logger' to 'LOG'
[lispflowmapping.git] / mappingservice / implementation / src / main / java / org / opendaylight / lispflowmapping / implementation / authentication / LispMACAuthentication.java
index cdc610133264713ef1a1336fe0ef2e7e57daee1f..19240fa4c53ef6d43bd07e1f3c2cead30dc174d1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -24,7 +24,7 @@ import org.slf4j.LoggerFactory;
 
 public class LispMACAuthentication implements ILispAuthentication {
 
-    protected static final Logger logger = LoggerFactory.getLogger(LispMACAuthentication.class);
+    protected static final Logger LOG = LoggerFactory.getLogger(LispMACAuthentication.class);
 
     protected String algorithm;
     private byte[] tempAuthenticationData;
@@ -36,7 +36,7 @@ public class LispMACAuthentication implements ILispAuthentication {
             authenticationLength = Mac.getInstance(algorithm).getMacLength();
             tempAuthenticationData = new byte[authenticationLength];
         } catch (NoSuchAlgorithmException e) {
-            logger.error("No such MAC algorithm" + algorithm);
+            LOG.warn("No such MAC algorithm" + algorithm);
         }
     }
 
@@ -64,9 +64,9 @@ public class LispMACAuthentication implements ILispAuthentication {
 
             return mac.doFinal(data);
         } catch (InvalidKeyException e) {
-            logger.error("Invalid password" + key);
+            LOG.warn("Invalid password" + key);
         } catch (NoSuchAlgorithmException e) {
-            logger.error("No such MAC algorithm" + algorithm);
+            LOG.warn("No such MAC algorithm" + algorithm);
         }
         return null;
     }