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…
Reference in New Issue