Repository: archiva-redback-core
Updated Branches:
  refs/heads/master 1b7bb246c -> f123c0a62


slf4j 1.7.7


Project: http://git-wip-us.apache.org/repos/asf/archiva-redback-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/archiva-redback-core/commit/f123c0a6
Tree: http://git-wip-us.apache.org/repos/asf/archiva-redback-core/tree/f123c0a6
Diff: http://git-wip-us.apache.org/repos/asf/archiva-redback-core/diff/f123c0a6

Branch: refs/heads/master
Commit: f123c0a62ed06d1754a66bcc2e39807fa8238e05
Parents: 1b7bb24
Author: Olivier Lamy <[email protected]>
Authored: Wed Apr 30 12:24:42 2014 +1000
Committer: Olivier Lamy <[email protected]>
Committed: Wed Apr 30 12:24:42 2014 +1000

----------------------------------------------------------------------
 pom.xml                                                       | 2 +-
 .../archiva/redback/policy/rules/MustHavePasswordRule.java    | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva-redback-core/blob/f123c0a6/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 1ed0601..24949f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,7 +71,7 @@
 
   <properties>
     <springVersion>4.0.3.RELEASE</springVersion>
-    <slf4jVersion>1.7.5</slf4jVersion>
+    <slf4jVersion>1.7.7</slf4jVersion>
     <log4j2Version>2.0-rc1</log4j2Version>
 
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

http://git-wip-us.apache.org/repos/asf/archiva-redback-core/blob/f123c0a6/redback-policy/src/main/java/org/apache/archiva/redback/policy/rules/MustHavePasswordRule.java
----------------------------------------------------------------------
diff --git 
a/redback-policy/src/main/java/org/apache/archiva/redback/policy/rules/MustHavePasswordRule.java
 
b/redback-policy/src/main/java/org/apache/archiva/redback/policy/rules/MustHavePasswordRule.java
index 6784bf9..2b1631d 100644
--- 
a/redback-policy/src/main/java/org/apache/archiva/redback/policy/rules/MustHavePasswordRule.java
+++ 
b/redback-policy/src/main/java/org/apache/archiva/redback/policy/rules/MustHavePasswordRule.java
@@ -21,6 +21,8 @@ import 
org.apache.archiva.redback.policy.PasswordRuleViolations;
 import org.apache.archiva.redback.policy.UserSecurityPolicy;
 import org.apache.archiva.redback.users.User;
 import org.apache.commons.lang.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.PostConstruct;
@@ -30,12 +32,14 @@ import javax.annotation.PostConstruct;
  *
  * @author <a href="mailto:[email protected]";>Joakim Erdfelt</a>
  */
-@Service("passwordRule#must-have")
+@Service( "passwordRule#must-have" )
 public class MustHavePasswordRule
     extends AbstractPasswordRule
 {
     public static final String MISSING_PASSWORD_VIOLATION = 
"user.password.violation.missing";
 
+    private final Logger logger = LoggerFactory.getLogger( getClass() );
+
     public void setUserSecurityPolicy( UserSecurityPolicy policy )
     {
         // Ignore, policy not needed in this rule.
@@ -53,5 +57,6 @@ public class MustHavePasswordRule
     public void initialize()
     {
         enabled = config.getBoolean( 
UserConfigurationKeys.POLICY_PASSWORD_RULE_MUSTHAVE_ENABLED );
+        logger.debug( "{} enabled: {}", 
UserConfigurationKeys.POLICY_PASSWORD_RULE_MUSTHAVE_ENABLED, enabled );
     }
 }

Reply via email to