[connection]完善DefaultConnectionSource日志输出

This commit is contained in:
datagear 2018-09-17 17:45:47 +08:00
parent 4fa66ba39c
commit 80382a2103
2 changed files with 5 additions and 1 deletions

View File

@ -248,6 +248,10 @@ public class DefaultConnectionSource implements ConnectionSource
}
catch (Throwable t)
{
if (LOGGER.isDebugEnabled())
LOGGER.debug("checking if [" + driverEntity
+ "] 's driver checked for getting prefered connection for [" + connectionOption
+ "] error", t);
}
}
}

View File

@ -106,7 +106,7 @@ public class XmlDriverEntityManagerTest
catch (PathDriverFactoryException e)
{
// 如果当前JRE小于8将会抛出此异常
assertEquals(DriverLoadErrorException.class, e.getClass());
assertEquals(DriverNotFoundException.class, e.getClass());
}
}