Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/LocalConnector.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 |
comparison
equal
deleted
inserted
replaced
819:17bd0b170ed6 | 820:8e9db0bbf4f9 |
---|---|
26 | 26 |
27 import org.eclipse.jetty.io.ByteArrayBuffer; | 27 import org.eclipse.jetty.io.ByteArrayBuffer; |
28 import org.eclipse.jetty.io.ByteArrayEndPoint; | 28 import org.eclipse.jetty.io.ByteArrayEndPoint; |
29 import org.eclipse.jetty.io.Connection; | 29 import org.eclipse.jetty.io.Connection; |
30 import org.eclipse.jetty.util.StringUtil; | 30 import org.eclipse.jetty.util.StringUtil; |
31 import org.eclipse.jetty.util.log.Log; | 31 import org.slf4j.Logger; |
32 import org.eclipse.jetty.util.log.Logger; | 32 import org.slf4j.LoggerFactory; |
33 | 33 |
34 public class LocalConnector extends AbstractConnector | 34 public class LocalConnector extends AbstractConnector |
35 { | 35 { |
36 private static final Logger LOG = Log.getLogger(LocalConnector.class); | 36 private static final Logger LOG = LoggerFactory.getLogger(LocalConnector.class); |
37 private final BlockingQueue<Request> _requests = new LinkedBlockingQueue<Request>(); | 37 private final BlockingQueue<Request> _requests = new LinkedBlockingQueue<Request>(); |
38 | 38 |
39 public LocalConnector() | 39 public LocalConnector() |
40 { | 40 { |
41 setMaxIdleTime(30000); | 41 setMaxIdleTime(30000); |
144 } | 144 } |
145 } | 145 } |
146 } | 146 } |
147 catch (IOException x) | 147 catch (IOException x) |
148 { | 148 { |
149 LOG.debug(x); | 149 LOG.debug("",x); |
150 leaveOpen = false; | 150 leaveOpen = false; |
151 } | 151 } |
152 catch (Exception x) | 152 catch (Exception x) |
153 { | 153 { |
154 LOG.warn(x); | 154 LOG.warn("",x); |
155 leaveOpen = false; | 155 leaveOpen = false; |
156 } | 156 } |
157 finally | 157 finally |
158 { | 158 { |
159 if (!leaveOpen) | 159 if (!leaveOpen) |