No need to log twice in case of an exception (#402)

This commit is contained in:
Andrei Ivanov
2016-10-11 12:03:49 +02:00
committed by Rob Winch
parent 5951d8a526
commit 33840bc46c
2 changed files with 2 additions and 0 deletions

View File

@@ -181,6 +181,7 @@ public class DefaultDirContextValidator implements DirContextValidator {
if(this.logger.isDebugEnabled()) {
this.logger.debug("DirContext '" + dirContext + "' failed validation with an exception.", e);
}
return false;
}
if (this.logger.isDebugEnabled()) {

View File

@@ -181,6 +181,7 @@ public class DefaultDirContextValidator implements DirContextValidator {
if(this.logger.isDebugEnabled()) {
this.logger.debug("DirContext '" + dirContext + "' failed validation with an exception.", e);
}
return false;
}
if (this.logger.isDebugEnabled()) {