[PATCH] Log successful/unsuccessful authentication without traceback

Wald Commits scm-commit at wald.intevation.org
Thu Oct 9 12:20:56 CEST 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1412850048 -7200
# Node ID c668520cc5fb124d177a4a368c8364b373190874
# Parent  ae750e3fa9eaf8ba16452fe65529010c31a9a025
Log successful/unsuccessful authentication without traceback.

diff -r ae750e3fa9ea -r c668520cc5fb gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java	Thu Oct 09 12:13:30 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java	Thu Oct 09 12:20:48 2014 +0200
@@ -49,10 +49,11 @@
                 this.redirectFailure(resp, req.getContextPath());
                 return;
             }
+            log.info("Authentication successfull.");
             this.performLogin(req, resp, aresp.getUser());
         }
         catch(AuthenticationException e) {
-            log.error(e, e);
+            log.error(e.getMessage());
             this.redirectFailure(resp, req.getContextPath(), e);
         }
     }


More information about the Dive4Elements-commits mailing list