OPENJPA-1068 cleanup trace/log output to only include the exception message and not the stack trace for optional validator creation failures

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780746 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2009-06-01 17:42:14 +00:00
parent 97caf21bb7
commit 96777b2205
2 changed files with 4 additions and 5 deletions

View File

@ -201,9 +201,7 @@ public class PersistenceProductDerivation
// unexpected, but validation is optional,
// so just log it as a warning
conf.getConfigurationLog().warn(
_loc.get("vlem-creation-warn"));
// if tracing, log the exception details
conf.getConfigurationLog().trace(e);
_loc.get("vlem-creation-warn", e.getMessage()));
}
}
} else {

View File

@ -196,7 +196,8 @@ invalid-orderBy: This is not a valid OrderBy annotation. The property or \
dynamic-agent: OpenJPA dynamically loaded the class enhancer. Any classes \
that were not enhanced at build time will be enhanced when the are \
loaded by the JVM.
vlem-creation-warn: Failed to create the optional Validation Provider.
vlem-creation-warn: Could not create the optional validation provider. \
Reason returned: "{0}"
vlem-creation-error: A fatal error occurred while trying to \
create the required Validation Provider.
create the required validation provider.