shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1023322 - /shiro/sandbox/crowd/src/main/java/org/apache/shiro/realm/crowd/CrowdRealm.java
Date Sat, 16 Oct 2010 16:07:13 GMT
Author: adc
Date: Sat Oct 16 16:07:12 2010
New Revision: 1023322

URL: http://svn.apache.org/viewvc?rev=1023322&view=rev
Log:
SHIRO-18 minimize excessive logging

Modified:
    shiro/sandbox/crowd/src/main/java/org/apache/shiro/realm/crowd/CrowdRealm.java

Modified: shiro/sandbox/crowd/src/main/java/org/apache/shiro/realm/crowd/CrowdRealm.java
URL: http://svn.apache.org/viewvc/shiro/sandbox/crowd/src/main/java/org/apache/shiro/realm/crowd/CrowdRealm.java?rev=1023322&r1=1023321&r2=1023322&view=diff
==============================================================================
--- shiro/sandbox/crowd/src/main/java/org/apache/shiro/realm/crowd/CrowdRealm.java (original)
+++ shiro/sandbox/crowd/src/main/java/org/apache/shiro/realm/crowd/CrowdRealm.java Sat Oct
16 16:07:12 2010
@@ -145,10 +145,8 @@ public class CrowdRealm extends Authoriz
         if (LOG.isTraceEnabled()) LOG.trace("Collecting authentication info from realm "
+ getName());
 
         if (!(authenticationToken instanceof UsernamePasswordToken)) {
-            String message = "Unsupported token of type " + authenticationToken.getClass().getName()
+ ".  "
-                             + UsernamePasswordToken.class.getName() + " is required.";
-            LOG.warn(message);
-            throw new UnsupportedTokenException(message);
+            throw new UnsupportedTokenException("Unsupported token of type " + authenticationToken.getClass().getName()
+ ".  "
+                                                + UsernamePasswordToken.class.getName() +
" is required.");
         }
 
         UsernamePasswordToken token = (UsernamePasswordToken) authenticationToken;



Mime
View raw message