- Improve email notification cases for unexpected exceptions.

This commit is contained in:
Paulo Gustavo Veiga
2012-08-14 23:55:13 -03:00
parent 6d7c12ca60
commit 09ed4f68b7
9 changed files with 113 additions and 50 deletions

View File

@@ -1,14 +1,8 @@
<!DOCTYPE HTML>
<%@ page import="org.apache.log4j.Logger" %>
<%@ page import="com.wisemapping.security.Utils" %>
<%@ page import="com.wisemapping.model.User" %>
<%@ page autoFlush="true" buffer="none" %>
<%@ include file="/jsp/init.jsp" %>
<%!
final Logger logger = Logger.getLogger("com.wisemapping");
%>
<h2>
<spring:message code="${requestScope.title}"/>
</h2>
@@ -16,21 +10,4 @@
<strong>
<spring:message code="${requestScope.details}"/>
</strong>
<!--
<%
final Throwable exception = (Throwable) request.getAttribute("exception");
if (exception != null) {
exception.printStackTrace(response.getWriter());
String usrMail = "anonymous";
final User user = Utils.getUser(false);
if (user != null) {
usrMail = user.getEmail();
}
logger.error("Unexpected error on user '" + usrMail + " ':", exception);
}
%>
-->