Improve logging to detect mismatched Validator:Class combinations.

This commit is contained in:
Ben Alex 2005-05-14 01:34:33 +00:00
parent 32646b5581
commit 4f2f6a5004
1 changed files with 3 additions and 2 deletions

View File

@ -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");
}