365411: Removed static logger from ProxyServlet

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Thomas Becker 2011-12-12 10:32:23 +01:00 committed by Simone Bordet
parent e666ed67cb
commit 5e18130854
1 changed files with 3 additions and 5 deletions

View File

@ -84,8 +84,6 @@ import org.eclipse.jetty.util.thread.QueuedThreadPool;
*/ */
public class ProxyServlet implements Servlet public class ProxyServlet implements Servlet
{ {
private static final Logger LOG = Log.getLogger(ProxyServlet.class);
protected Logger _log; protected Logger _log;
protected HttpClient _client; protected HttpClient _client;
protected String _hostHeader; protected String _hostHeader;
@ -497,7 +495,7 @@ public class ProxyServlet implements Servlet
{ {
if (ex instanceof EofException) if (ex instanceof EofException)
{ {
LOG.ignore(ex); _log.ignore(ex);
return; return;
} }
handleOnException(ex,request,response); handleOnException(ex,request,response);
@ -732,8 +730,8 @@ public class ProxyServlet implements Servlet
*/ */
protected void handleOnException(Throwable ex, HttpServletRequest request, HttpServletResponse response) protected void handleOnException(Throwable ex, HttpServletRequest request, HttpServletResponse response)
{ {
LOG.warn(ex.toString()); _log.warn(ex.toString());
LOG.debug(ex); _log.debug(ex);
if (!response.isCommitted()) if (!response.isCommitted())
{ {
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);