diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-01-27 12:33:02 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-01-27 12:33:02 +0100 |
commit | ec62813f4c0e8b3002d46f7bc315e7a27d720125 (patch) | |
tree | 44f45e7eb1d185eeab69fdc92c77ff78a6fec379 /id/server/idserverlib/src/main/java/at | |
parent | 2e98b67e266b80263da306757d3f7e5535b3031b (diff) | |
download | moa-id-spss-ec62813f4c0e8b3002d46f7bc315e7a27d720125.tar.gz moa-id-spss-ec62813f4c0e8b3002d46f7bc315e7a27d720125.tar.bz2 moa-id-spss-ec62813f4c0e8b3002d46f7bc315e7a27d720125.zip |
rebuild error messaging in case of taskExecution errorsMOA-ID-3.1.0_RC1
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.java | 13 |
1 files changed, 8 insertions, 5 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 43f4f90ff..fe24d45dd 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 @@ -197,11 +197,6 @@ public class AuthServlet extends HttpServlet { procExc.getCause() instanceof TaskExecutionException) { TaskExecutionException taskExc = (TaskExecutionException) procExc.getCause(); loggedException = taskExc.getOriginalException(); - if (Logger.isDebugEnabled() || Logger.isTraceEnabled()) { - Logger.error(exceptionThrown.getMessage(), exceptionThrown); - - } else - Logger.error(exceptionThrown.getMessage()); } } @@ -213,6 +208,14 @@ public class AuthServlet extends HttpServlet { if (!(loggedException instanceof MOAIDException)) { Logger.error("Receive an internal error: Message=" + loggedException.getMessage(), loggedException); + } else { + if (Logger.isDebugEnabled() || Logger.isTraceEnabled()) { + Logger.error(loggedException.getMessage(), loggedException); + + } else { + Logger.error(loggedException.getMessage()); + + } } IExceptionStore store = DBExceptionStoreImpl.getStore(); |