From f123c0a62ed06d1754a66bcc2e39807fa8238e05 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 30 Apr 2014 12:24:42 +1000 Subject: [PATCH] slf4j 1.7.7 --- pom.xml | 2 +- .../archiva/redback/policy/rules/MustHavePasswordRule.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 1ed06015..24949f03 100644 --- a/pom.xml +++ b/pom.xml @@ -71,7 +71,7 @@ 4.0.3.RELEASE - 1.7.5 + 1.7.7 2.0-rc1 UTF-8 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 6784bf9f..2b1631df 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 Joakim Erdfelt */ -@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 ); } }