diff gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java @ 8203:238fc722f87a

sed 's/logger/log/g' src/**/*.java
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 13:19:22 +0200
parents ea9eef426962
children c668520cc5fb
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java	Fri Sep 05 12:58:17 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java	Fri Sep 05 13:19:22 2014 +0200
@@ -24,7 +24,7 @@
 
 public class LoginServlet extends AuthenticationServlet {
 
-    private static Logger logger = Logger.getLogger(LoginServlet.class);
+    private static Logger log = Logger.getLogger(LoginServlet.class);
 
     @Override
     protected void doPost(HttpServletRequest req, HttpServletResponse resp)
@@ -34,10 +34,10 @@
         String username = req.getParameter("username");
         String password = req.getParameter("password");
 
-        logger.debug("Processing post request");
+        log.debug("Processing post request");
 
         if (username == null || password == null) {
-            logger.debug("No username or password provided");
+            log.debug("No username or password provided");
             this.redirectFailure(resp, req.getContextPath());
             return;
         }
@@ -45,14 +45,14 @@
         try {
             Authentication aresp = this.auth(username, password, encoding);
             if (aresp == null || !aresp.isSuccess()) {
-                logger.debug("Authentication not successful");
+                log.debug("Authentication not successful");
                 this.redirectFailure(resp, req.getContextPath());
                 return;
             }
             this.performLogin(req, resp, aresp.getUser());
         }
         catch(AuthenticationException e) {
-            logger.error(e, e);
+            log.error(e, e);
             this.redirectFailure(resp, req.getContextPath(), e);
         }
     }

http://dive4elements.wald.intevation.org