You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by ad...@apache.org on 2010/10/16 18:07:13 UTC
svn commit: r1023322 -
/shiro/sandbox/crowd/src/main/java/org/apache/shiro/realm/crowd/CrowdRealm.java
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;