mirror of https://github.com/apache/openjpa.git
OPENJPA-2236: Put try/catch around connection info trace in DBDictionary - back ported Jeremy Bauer's trunk changes to 2.0.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1431723 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
54cab34e20
commit
838b53bfce
|
@ -445,10 +445,15 @@ public class DBDictionary
|
|||
if (log.isTraceEnabled()) {
|
||||
log.trace(DBDictionaryFactory.toString(metaData));
|
||||
|
||||
if (isJDBC3)
|
||||
if (isJDBC3) {
|
||||
try {
|
||||
log.trace(_loc.get("connection-defaults", new Object[]{
|
||||
conn.getAutoCommit(), conn.getHoldability(),
|
||||
conn.getTransactionIsolation()}));
|
||||
} catch (Throwable t) {
|
||||
log.trace("Unable to trace connection settings", t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Configure the naming utility
|
||||
|
|
Loading…
Reference in New Issue