Bläddra i källkod

Improve logging to detect mismatched Validator:Class combinations.

Ben Alex 20 år sedan
förälder
incheckning
4f2f6a5004

+ 3 - 2
domain/src/main/java/org/acegisecurity/domain/validation/ValidationManagerImpl.java

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