Revision: 1143
          http://stripes.svn.sourceforge.net/stripes/?rev=1143&view=rev
Author:   fdaoud
Date:     2009-09-16 21:19:51 +0000 (Wed, 16 Sep 2009)

Log Message:
-----------
Fix for STS-690

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

Modified: 
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java
===================================================================
--- 
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java
    2009-09-16 21:18:16 UTC (rev 1142)
+++ 
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java
    2009-09-16 21:19:51 UTC (rev 1143)
@@ -155,7 +155,9 @@
         catch (ServletException se) { throw se; }
         catch (IOException ioe) { throw ioe; }
         catch (Throwable t) {
-            throw new StripesServletException("Unhandled exception in 
exception handler.", t);
+            String message = "Unhandled exception in exception handler.";
+            log.error(t, message);
+            throw new StripesServletException(message, t);
         }
     }
 

Modified: trunk/stripes/src/net/sourceforge/stripes/util/Log.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/util/Log.java     2009-09-16 
21:18:16 UTC (rev 1142)
+++ trunk/stripes/src/net/sourceforge/stripes/util/Log.java     2009-09-16 
21:19:51 UTC (rev 1143)
@@ -29,6 +29,10 @@
 public final class Log {
     private org.apache.commons.logging.Log realLog;
 
+    public org.apache.commons.logging.Log getRealLog() {
+        return realLog;
+    }
+
     /**
      * Get a Log instance to perform logging within the Class specified.  
Returns an instance
      * of this class which wraps an instance of the commons logging Log class.


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

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to