[Yanel-commits] rev 34608 - public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet

michi at wyona.com michi at wyona.com
Wed Apr 2 10:35:12 CEST 2008


Author: michi
Date: 2008-04-02 10:35:11 +0200 (Wed, 02 Apr 2008)
New Revision: 34608

Modified:
   public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java
Log:
log statements cleaned

Modified: public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java
===================================================================
--- public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java	2008-04-02 08:34:49 UTC (rev 34607)
+++ public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java	2008-04-02 08:35:11 UTC (rev 34608)
@@ -1051,12 +1051,11 @@
         // Check Authorization
         boolean authorized = false;
         try {
-            log.debug("Do session based custom authorization");
             if (log.isDebugEnabled()) log.debug("Check authorization: realm: " + realm + ", path: " + path + ", identity: " + identity + ", Usecase: " + usecase.getName());
             authorized = realm.getPolicyManager().authorize(path, identity, usecase);
             if (log.isDebugEnabled()) log.debug("Check authorization result: " + authorized);
         } catch (Exception e) {
-            log.error(e.getMessage(), e);
+            log.error(e, e);
             throw new ServletException(e.getMessage(), e);
         }
 
@@ -1750,8 +1749,7 @@
         if (log.isDebugEnabled()) log.debug("Checking for Authorization Header: " + authorizationHeader);
         if (authorizationHeader != null) {
             if (authorizationHeader.toUpperCase().startsWith("BASIC")) {
-                log.debug("Using BASIC authorization ...");
-                log.error("DEBUG: Using BASIC authorization ...");
+                log.warn("Using BASIC authorization ...");
                 // Get encoded user and password, comes after "BASIC "
                 String userpassEncoded = authorizationHeader.substring(6);
                 // Decode it, using any base 64 decoder



More information about the Yanel-commits mailing list