diff src/org/eclipse/jetty/http/HttpGenerator.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 fef4392f4905
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpGenerator.java	Fri Sep 09 17:10:47 2016 -0600
+++ b/src/org/eclipse/jetty/http/HttpGenerator.java	Tue Sep 13 23:13:06 2016 -0600
@@ -29,8 +29,8 @@
 import org.eclipse.jetty.io.EndPoint;
 import org.eclipse.jetty.io.EofException;
 import org.eclipse.jetty.util.StringUtil;
-import org.eclipse.jetty.util.log.Log;
-import org.eclipse.jetty.util.log.Logger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /* ------------------------------------------------------------ */
 /**
@@ -41,7 +41,7 @@
  */
 public class HttpGenerator extends AbstractGenerator
 {
-    private static final Logger LOG = Log.getLogger(HttpGenerator.class);
+    private static final Logger LOG = LoggerFactory.getLogger(HttpGenerator.class);
 
     // Build cache of response lines for status
     private static class Status
@@ -140,7 +140,7 @@
             }
             catch(IOException e)
             {
-                LOG.ignore(e);
+                LOG.trace("",e);
             }
         }
         super.reset();
@@ -338,7 +338,7 @@
         }
         catch(InterruptedException e)
         {
-            LOG.debug(e);
+            LOG.debug("",e);
             throw new InterruptedIOException(e.toString());
         }
     }
@@ -910,7 +910,7 @@
         }
         catch (IOException e)
         {
-            LOG.ignore(e);
+            LOG.trace("",e);
             throw (e instanceof EofException) ? e:new EofException(e);
         }
     }