diff src/org/eclipse/jetty/util/security/CertificateValidator.java @ 820:8e9db0bbf4f9

remove org.eclipse.jetty.util.log and upgrade slf4j
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 13 Sep 2016 23:13:06 -0600
parents 3428c60d7cfc
children
line wrap: on
line diff
--- a/src/org/eclipse/jetty/util/security/CertificateValidator.java	Fri Sep 09 17:10:47 2016 -0600
+++ b/src/org/eclipse/jetty/util/security/CertificateValidator.java	Tue Sep 13 23:13:06 2016 -0600
@@ -39,8 +39,8 @@
 import java.util.Enumeration;
 import java.util.concurrent.atomic.AtomicLong;
 
-import org.eclipse.jetty.util.log.Log;
-import org.eclipse.jetty.util.log.Logger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Convenience class to handle validation of certificates, aliases and keystores
@@ -54,7 +54,7 @@
  */
 public class CertificateValidator
 {
-    private static final Logger LOG = Log.getLogger(CertificateValidator.class);
+    private static final Logger LOG = LoggerFactory.getLogger(CertificateValidator.class);
     private static AtomicLong __aliasCount = new AtomicLong();
     
     private KeyStore _trustStore;
@@ -133,7 +133,7 @@
             }
             catch (KeyStoreException kse)
             {
-                LOG.debug(kse);
+                LOG.debug("",kse);
                 throw new CertificateException("Unable to validate certificate" +
                         " for alias [" + keyAlias + "]: " + kse.getMessage(), kse);
             }
@@ -181,7 +181,7 @@
             }
             catch (KeyStoreException kse)
             {
-                LOG.debug(kse);
+                LOG.debug("",kse);
                 throw new CertificateException("Unable to validate certificate" +
                         (certAlias == null ? "":" for alias [" +certAlias + "]") + ": " + kse.getMessage(), kse);
             }
@@ -252,7 +252,7 @@
         }
         catch (GeneralSecurityException gse)
         {
-            LOG.debug(gse);
+            LOG.debug("",gse);
             throw new CertificateException("Unable to validate certificate: " + gse.getMessage(), gse);
         }
     }