aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2012-12-12 13:27:31 (EST)
committerThomas Becker2012-12-12 13:27:31 (EST)
commitb1a7779bd22db5e6c41e6f756e8153771684465c (patch)
treef9dc42203723d98c12ee63b6f096ba1ddf4d93f4
parent979d6dbbf9416b1a0ad965e2b8a3b11a2d208627 (diff)
downloadorg.eclipse.jetty.project-b1a7779bd22db5e6c41e6f756e8153771684465c.zip
org.eclipse.jetty.project-b1a7779bd22db5e6c41e6f756e8153771684465c.tar.gz
org.eclipse.jetty.project-b1a7779bd22db5e6c41e6f756e8153771684465c.tar.bz2
393220 remove dead code from ServletHandler and log ServletExceptions in warn instead of debug
-rw-r--r--jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHandler.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHandler.java b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHandler.java
index b0812c5..9614a77 100644
--- a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHandler.java
+++ b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHandler.java
@@ -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)