Filtered log output and uncovered a little typo.

This commit is contained in:
Ulrik Sandberg
2009-01-28 17:40:54 +00:00
parent 30f53ba794
commit 2c23706839
3 changed files with 12 additions and 2 deletions

View File

@@ -1424,7 +1424,7 @@ public class LdapTemplate implements LdapOperations, InitializingBean {
List result = search(base, filter, new LdapEntryIdentificationContextMapper());
if (result.size() != 1) {
log.error("Unable to find unique entry matching in authentication; base: '" + base + "'; filter: '"
+ filter + "'. Found " + result.size() + " mathching entries");
+ filter + "'. Found " + result.size() + " matching entries");
return false;
}

View File

@@ -0,0 +1,7 @@
log4j.rootCategory=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
log4j.logger.org.apache.directory=ERROR

View File

@@ -6,4 +6,7 @@ log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Enable info on Spring LDAP
#log4j.logger.org.springframework.ldap=INFO
log4j.logger.org.apache.directory.server.schema.registries.DefaultSyntaxRegistry=WARN
log4j.logger.org.apache.directory.server.schema.registries.DefaultSyntaxRegistry=WARN
log4j.logger.org.apache.directory.server.core.schema.bootstrap=ERROR
log4j.logger.org.apache.directory.server.core.partition.impl.btree=ERROR
log4j.logger.org.apache.directory.shared.ldap.ldif=ERROR