From 174edb40f01476bb06b31690332c300cf4e55971 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 13 Feb 2018 16:14:53 +0100 Subject: optimize loglevel --- .../moa/id/protocols/AbstractAuthProtocolModulController.java | 1 - .../moa/id/protocols/ProtocolFinalizationController.java | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java index 945033454..9b30368e3 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java @@ -275,7 +275,6 @@ public abstract class AbstractAuthProtocolModulController extends AbstractContro } } catch (Throwable e) { - Logger.error(e); handleErrorNoRedirect(throwable, req, resp, true); } diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/ProtocolFinalizationController.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/ProtocolFinalizationController.java index aebcf372e..41a4c9835 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/ProtocolFinalizationController.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/ProtocolFinalizationController.java @@ -37,7 +37,6 @@ import at.gv.egovernment.moa.id.auth.exception.AuthenticationException; import at.gv.egovernment.moa.id.commons.api.IRequest; import at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession; import at.gv.egovernment.moa.id.commons.api.exceptions.MOAIDException; -import at.gv.egovernment.moa.id.commons.utils.MOAIDMessageProvider; import at.gv.egovernment.moa.id.data.ExceptionContainer; import at.gv.egovernment.moa.logging.Logger; @@ -87,15 +86,12 @@ public class ProtocolFinalizationController extends AbstractAuthProtocolModulCon } } else { - handleErrorNoRedirect(new Exception( - MOAIDMessageProvider.getInstance().getMessage("auth.26", null)), - req, resp, false); + handleErrorNoRedirect(new MOAIDException("auth.26", null), req, resp, false); } } catch (Throwable e) { - Logger.error(e); - + Logger.error(e); handleErrorNoRedirect(e, req, resp, false); } -- cgit v1.2.3