From 4f2f6a5004a8e0ac3991dabd79fed5971361cce7 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Sat, 14 May 2005 01:34:33 +0000 Subject: [PATCH] Improve logging to detect mismatched Validator:Class combinations. --- .../domain/validation/ValidationManagerImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/domain/src/main/java/org/acegisecurity/domain/validation/ValidationManagerImpl.java b/domain/src/main/java/org/acegisecurity/domain/validation/ValidationManagerImpl.java index 2b6ce021cf..f5b7d5d1d4 100644 --- a/domain/src/main/java/org/acegisecurity/domain/validation/ValidationManagerImpl.java +++ b/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"); }