mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 21:42:17 +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
|
// Handle validation outcome
|
||||||
if (errors.getErrorCount() == 0) {
|
if (errors.getErrorCount() == 0) {
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("Validated '" + clazz + "' successfully");
|
logger.debug("Validated '" + clazz + "' successfully using '"
|
||||||
|
+ v.getClass() + "'");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("Validated '" + clazz
|
logger.debug("Validated '" + clazz + "' using '" + v.getClass()
|
||||||
+ "' but errors detected");
|
+ "' but errors detected");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user