dgraham 2003/08/06 17:39:05 Modified: src/share/org/apache/struts/action ExceptionHandler.java LocalStrings.properties Log: Log exception with a message to print the full stack trace for PR# 21569. Revision Changes Path 1.20 +12 -4 jakarta-struts/src/share/org/apache/struts/action/ExceptionHandler.java Index: ExceptionHandler.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ExceptionHandler.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- ExceptionHandler.java 26 Jul 2003 00:13:20 -0000 1.19 +++ ExceptionHandler.java 7 Aug 2003 00:39:05 -0000 1.20 @@ -69,6 +69,7 @@ import org.apache.commons.logging.LogFactory; import org.apache.struts.Globals; import org.apache.struts.config.ExceptionConfig; +import org.apache.struts.util.MessageResources; import org.apache.struts.util.ModuleException; /** @@ -85,6 +86,13 @@ private static final Log log = LogFactory.getLog(ExceptionHandler.class); /** + * The message resources for this package. + */ + private static MessageResources messages = + MessageResources.getMessageResources( + "org.apache.struts.action.LocalStrings"); + + /** * Handle the exception. * Return the <code>ActionForward</code> instance (if any) returned by * the called <code>ExceptionHandler</code>. @@ -144,7 +152,7 @@ * @since Struts 1.2 */ protected void logException(Exception e){ - log.debug(e); + log.debug(messages.getMessage("exception.log"), e); } /** 1.2 +7 -0 jakarta-struts/src/share/org/apache/struts/action/LocalStrings.properties Index: LocalStrings.properties =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/LocalStrings.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- LocalStrings.properties 23 Mar 2001 22:21:34 -0000 1.1 +++ LocalStrings.properties 7 Aug 2003 00:39:05 -0000 1.2 @@ -1,5 +1,12 @@ dispatch.error=Dispatch[{0}] to method {1} returned an exception + dispatch.handler=DispatchMapping[{0}] does not define a handler property + dispatch.method=Action[{0}] does not contain method named {1} + dispatch.parameter=Request[{0}] does not contain handler parameter named {1} + dispatch.return=Action[{0}] invalid return type for method {1} + +exception.log=ExceptionHandler caught this exception: +
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]