mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 13:32:30 +00:00
Improve logging to detect mismatched Validator:Class combinations.
This commit is contained in:
parent
32646b5581
commit
4f2f6a5004
@ -148,11 +148,12 @@ public class ValidationManagerImpl implements InitializingBean,
|
||||
// Handle validation outcome
|
||||
if (errors.getErrorCount() == 0) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Validated '" + clazz + "' successfully");
|
||||
logger.debug("Validated '" + clazz + "' successfully using '"
|
||||
+ v.getClass() + "'");
|
||||
}
|
||||
} else {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Validated '" + clazz
|
||||
logger.debug("Validated '" + clazz + "' using '" + v.getClass()
|
||||
+ "' but errors detected");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user