Revision: 509
          http://svn.sourceforge.net/stripes/?rev=509&view=rev
Author:   tfenne
Date:     2007-04-01 14:01:11 -0700 (Sun, 01 Apr 2007)

Log Message:
-----------
Fix for STS-312: DefaultExceptionHandler should log messages in case the 
servlet container doesn't.

Modified Paths:
--------------
    
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java
===================================================================
--- 
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java
    2007-04-01 20:56:18 UTC (rev 508)
+++ 
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java
    2007-04-01 21:01:11 UTC (rev 509)
@@ -15,6 +15,7 @@
 package net.sourceforge.stripes.exception;
 
 import net.sourceforge.stripes.config.Configuration;
+import net.sourceforge.stripes.util.Log;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
@@ -28,11 +29,15 @@
  * @since Stripes 1.3
  */
 public class DefaultExceptionHandler implements ExceptionHandler {
+    private static final Log log = 
Log.getInstance(DefaultExceptionHandler.class);
 
     /** Simply rethrows the exception passed in. */
     public void handle(Throwable throwable,
                        HttpServletRequest request,
                        HttpServletResponse response) throws ServletException {
+
+        log.warn(throwable, "Unhandled exception caught by the Stripes default 
exception handler.");
+
         if (throwable instanceof ServletException) {
             throw (ServletException) throwable;
         }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to