User: user57
Date: 01/12/06 13:18:01
Modified: src/web/forums error.jsp
Log:
o re-enable logging
Revision Changes Path
1.6 +7 -1 website-forums/src/web/forums/error.jsp
Index: error.jsp
===================================================================
RCS file: /cvsroot/jboss/website-forums/src/web/forums/error.jsp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- error.jsp 2001/12/06 20:44:44 1.5
+++ error.jsp 2001/12/06 21:18:01 1.6
@@ -5,6 +5,12 @@
isErrorPage="true"
%>
+<%@ page import="org.apache.log4j.Category" %>
+
+<%!
+ Category log = Category.getInstance(this.getClass());
+%>
+
<% // Do a check to see what type of exception the exception variable is.
// If it's an UnauthorizedException, redirect to the login page
if (exception instanceof UnauthorizedException) {
@@ -33,7 +39,7 @@
</font>
-<% exception.printStackTrace();
+<% log.error("unexpected exception", exception);
StringWriter sout = new StringWriter();
PrintWriter pout = new PrintWriter(sout);
exception.printStackTrace(pout);
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development