393220 remove dead code from ServletHandler and log ServletExceptions in warn instead of debug

This commit is contained in:
Thomas Becker 2012-12-12 19:27:31 +01:00
parent 979d6dbbf9
commit b1a7779bd2

View File

@ -29,10 +29,8 @@ import java.util.Queue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ConcurrentMap;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.RequestDispatcher;
import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
@ -479,18 +477,11 @@ public class ServletHandler extends ScopedHandler
}
else if (th instanceof ServletException)
{
LOG.debug(th);
LOG.warn(th);
Throwable cause=((ServletException)th).getRootCause();
if (cause!=null)
th=cause;
}
else if (th instanceof RuntimeIOException)
{
LOG.debug(th);
Throwable cause=(IOException)((RuntimeIOException)th).getCause();
if (cause!=null)
th=cause;
}
// handle or log exception
if (th instanceof HttpException)