Mercurial Hosting > luan
diff src/org/eclipse/jetty/http/HttpParser.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 | 220ad4853cda |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpParser.java Fri Sep 09 17:10:47 2016 -0600 +++ b/src/org/eclipse/jetty/http/HttpParser.java Tue Sep 13 23:13:06 2016 -0600 @@ -30,12 +30,12 @@ import org.eclipse.jetty.io.View; import org.eclipse.jetty.io.bio.StreamEndPoint; 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; public class HttpParser implements Parser { - private static final Logger LOG = Log.getLogger(HttpParser.class); + private static final Logger LOG = LoggerFactory.getLogger(HttpParser.class); // States public static final int STATE_START=-14; @@ -537,7 +537,7 @@ } catch(NumberFormatException e) { - LOG.ignore(e); + LOG.trace("",e); throw new HttpException(HttpStatus.BAD_REQUEST_400); } if (_contentLength <= 0) @@ -1046,7 +1046,7 @@ } catch(IOException e) { - LOG.debug(e); + LOG.debug("",e); throw (e instanceof EofException) ? e:new EofException(e); } }