jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1577993 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/token/TokenProvider.java
Date Sun, 16 Mar 2014 08:09:15 GMT
Author: dbrosius
Date: Sun Mar 16 08:09:14 2014
New Revision: 1577993

URL: http://svn.apache.org/r1577993
Log:
log.error(String, String) is invalid without parameter markers, fixed

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/token/TokenProvider.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/token/TokenProvider.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/token/TokenProvider.java?rev=1577993&r1=1577992&r2=1577993&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/token/TokenProvider.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/token/TokenProvider.java
Sun Mar 16 08:09:14 2014
@@ -173,15 +173,15 @@ public class TokenProvider extends Prote
                 return new TokenInfoImpl(tokenNode, token, user.getID());
             } catch (NoSuchAlgorithmException e) {
                 // error while generating login token
-                log.error(error, e.getMessage());
+                log.error(error, e);
             } catch (UnsupportedEncodingException e) {
                 // error while generating login token
-                log.error(error, e.getMessage());
+                log.error(error, e);
             } catch (AccessDeniedException e) {
-                log.warn(error, e.getMessage());
+                log.warn(error, e);
             }
         } else {
-            log.warn("Unable to get/create token store for user " + user.getID());
+            log.warn("Unable to get/create token store for user {}", user.getID());
         }
         return null;
     }
@@ -328,12 +328,12 @@ public class TokenProvider extends Prote
                     }
                 }
             } else {
-                log.debug("Cannot create login token: No corresponding node for User " +
user.getID() + '.');
+                log.debug("Cannot create login token: No corresponding node for User {}.",
user.getID());
             }
         } catch (RepositoryException e) {
             // conflict while creating token store for this user -> refresh and
             // try to get the tree from the updated root.
-            log.debug("Conflict while creating token store -> retrying", e.getMessage());
+            log.debug("Conflict while creating token store -> retrying", e);
             session.refresh(false);
             if (parentPath != null && session.nodeExists(parentPath)) {
                 tokenParent = (NodeImpl) session.getNode(parentPath);
@@ -406,7 +406,7 @@ public class TokenProvider extends Prote
                     return true;
                 }
             } catch (RepositoryException e) {
-                log.warn("Error while resetting token expiration", e.getMessage());
+                log.warn("Error while resetting token expiration", e);
             } finally {
                 if (s != null) {
                     s.logout();
@@ -474,4 +474,4 @@ public class TokenProvider extends Prote
         }
 
     }
-}
\ No newline at end of file
+}



Mime
View raw message