diff src/org/eclipse/jetty/io/nio/SslConnection.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 b77d631b9e28
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/SslConnection.java	Fri Sep 09 17:10:47 2016 -0600
+++ b/src/org/eclipse/jetty/io/nio/SslConnection.java	Tue Sep 13 23:13:06 2016 -0600
@@ -32,8 +32,8 @@
 import org.eclipse.jetty.io.Buffer;
 import org.eclipse.jetty.io.Connection;
 import org.eclipse.jetty.io.EndPoint;
-import org.eclipse.jetty.util.log.Log;
-import org.eclipse.jetty.util.log.Logger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.eclipse.jetty.util.thread.Timeout.Task;
 
 /* ------------------------------------------------------------ */
@@ -47,7 +47,7 @@
  */
 public class SslConnection extends AbstractConnection implements AsyncConnection
 {
-    private final Logger _logger = Log.getLogger("org.eclipse.jetty.io.nio.ssl");
+    private final Logger _logger = LoggerFactory.getLogger("org.eclipse.jetty.io.nio.ssl");
 
     private static final NIOBuffer __ZERO_BUFFER=new IndirectNIOBuffer(0);
 
@@ -219,7 +219,7 @@
                     _logger.warn("onInputShutdown failed", x);
                     try{_sslEndPoint.close();}
                     catch(IOException e2){
-                        _logger.ignore(e2);}
+                        _logger.trace("",e2);}
                 }
             }
         }
@@ -261,7 +261,7 @@
         }
         catch (IOException e)
         {
-            _logger.warn(e);
+            _logger.warn("",e);
             super.onIdleExpired(idleForMs);
         }
     }
@@ -436,7 +436,7 @@
         }
         catch (SSLException x)
         {
-            _logger.debug(x);
+            _logger.debug("",x);
         }
     }