增加异常日志

增加异常日志-对于由于驱动加载与JAVA版本问题导致的Error无法看到任何日志,导致不好排查问题
This commit is contained in:
qihw
2017-08-19 16:56:08 +08:00
committed by GitHub
parent b4479d515c
commit bb4319aa95
@@ -843,7 +843,11 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
throw e;
} catch (InterruptedException e) {
throw new SQLException(e.getMessage(), e);
} finally {
} catch (Throwable e){
LOG.error("{dataSource-" + this.getID() + "} init error", e);
throw e;
}
finally {
inited = true;
lock.unlock();