diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-11-26 17:37:53 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-11-26 17:37:53 +0100 |
commit | b6942870faa8aee99554de2a324634c92e8cbcaa (patch) | |
tree | 3bcbb872adb4ce08d75a96aaba3ec0bc59dc847b /eaaf_core/src/main/java | |
parent | 2c8d2e81c99615bd1f57fd19f18f1ce3e6d7efed (diff) | |
download | EAAF-Components-b6942870faa8aee99554de2a324634c92e8cbcaa.tar.gz EAAF-Components-b6942870faa8aee99554de2a324634c92e8cbcaa.tar.bz2 EAAF-Components-b6942870faa8aee99554de2a324634c92e8cbcaa.zip |
fix codestyle issue
Diffstat (limited to 'eaaf_core/src/main/java')
-rw-r--r-- | eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java index 8c258a14..50bf76db 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java @@ -384,8 +384,9 @@ public class ProtocolAuthenticationService implements IProtocolAuthenticationSer // In case of a TaskExecutionException, which is only a container for process-errors, // extract internal exception Throwable toLog; - if (loggedException instanceof TaskExecutionException) { - toLog = ((TaskExecutionException)loggedException); + if (loggedException instanceof TaskExecutionException + && ((TaskExecutionException)loggedException).getOriginalException() != null) { + toLog = ((TaskExecutionException)loggedException).getOriginalException(); } else { toLog = loggedException; @@ -398,8 +399,7 @@ public class ProtocolAuthenticationService implements IProtocolAuthenticationSer toLog.getMessage(), toLog); } else { - if (toLog instanceof EaafException - && logOnInfoLevel.contains(((EaafException) toLog).getErrorId())) { + if (logOnInfoLevel.contains(((EaafException) toLog).getErrorId())) { log.info(TECH_LOG_MSG, ((EaafException) toLog).getErrorId(), toLog.getMessage(), toLog); |