mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-28 19:09:10 +00:00
393220 remove dead code from ServletHandler and log ServletExceptions in warn instead of debug
This commit is contained in:
parent
979d6dbbf9
commit
b1a7779bd2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user