aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java/at
diff options
context:
space:
mode:
authorkstranacher <kstranacher@d688527b-c9ab-4aba-bd8d-4036d912da1d>2009-07-09 12:52:53 +0000
committerkstranacher <kstranacher@d688527b-c9ab-4aba-bd8d-4036d912da1d>2009-07-09 12:52:53 +0000
commit4c7661af6d16a8b598a11548a1df61d526b86b4d (patch)
tree8fec3286807a5f7a0b62ec16d4fc3d025869f242 /id/server/idserverlib/src/main/java/at
parentaebb5cd04d43b25b8d65237ba49fddf5f5dd1a8c (diff)
downloadmoa-id-spss-4c7661af6d16a8b598a11548a1df61d526b86b4d.tar.gz
moa-id-spss-4c7661af6d16a8b598a11548a1df61d526b86b4d.tar.bz2
moa-id-spss-4c7661af6d16a8b598a11548a1df61d526b86b4d.zip
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1115 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id/server/idserverlib/src/main/java/at')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/AuthServlet.java5
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/servlet/ProxyServlet.java6
2 files changed, 10 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/AuthServlet.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/AuthServlet.java
index 76b131258..ddd1df628 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/AuthServlet.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/AuthServlet.java
@@ -75,11 +75,16 @@ public class AuthServlet extends HttpServlet implements MOAIDAuthConstants {
req.setAttribute("ErrorMessage", errorMessage );
}
+
if (null != exceptionThrown) {
if(null == errorMessage) errorMessage = exceptionThrown.getMessage();
Logger.error(errorMessage, exceptionThrown);
req.setAttribute("ExceptionThrown", exceptionThrown);
}
+
+ if (Logger.isDebugEnabled()) {
+ req.setAttribute("LogLevel", "debug");
+ }
//forward this to errorpage-auth.jsp where the HTML error page is generated
ServletContext context = getServletContext();
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/servlet/ProxyServlet.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/servlet/ProxyServlet.java
index 8e1767916..b986d7c2c 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/servlet/ProxyServlet.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/servlet/ProxyServlet.java
@@ -842,7 +842,11 @@ protected void handleError(
Logger.error(errorMessage, exceptionThrown);
//req.setAttribute("ExceptionThrown", exceptionThrown);
}
-
+
+ if (Logger.isDebugEnabled()) {
+ req.setAttribute("LogLevel", "debug");
+ }
+
//forward this to errorpage-proxy.jsp where the HTML error page is generated
ServletContext context = getServletContext();
RequestDispatcher dispatcher = context.getRequestDispatcher("/errorpage-proxy.jsp");