Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/nio/DirectNIOBuffer.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 | 2712133d5bce |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/DirectNIOBuffer.java Fri Sep 09 17:10:47 2016 -0600 +++ b/src/org/eclipse/jetty/io/nio/DirectNIOBuffer.java Tue Sep 13 23:13:06 2016 -0600 @@ -32,8 +32,8 @@ import org.eclipse.jetty.io.AbstractBuffer; import org.eclipse.jetty.io.Buffer; import org.eclipse.jetty.util.IO; -import org.eclipse.jetty.util.log.Log; -import org.eclipse.jetty.util.log.Logger; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /* ------------------------------------------------------------------------------- */ /** @@ -42,7 +42,7 @@ */ public class DirectNIOBuffer extends AbstractBuffer implements NIOBuffer { - private static final Logger LOG = Log.getLogger(DirectNIOBuffer.class); + private static final Logger LOG = LoggerFactory.getLogger(DirectNIOBuffer.class); protected final ByteBuffer _buf; private ReadableByteChannel _in; @@ -87,7 +87,7 @@ } finally { - if (fc != null) try {fc.close();} catch (IOException e){LOG.ignore(e);} + if (fc != null) try {fc.close();} catch (IOException e){LOG.trace("",e);} IO.close(fis); } }