mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved DruidDataSource error log, add errorCode & sqlState
This commit is contained in:
@@ -1933,7 +1933,7 @@ public class DruidDataSource extends DruidAbstractDataSource
|
||||
try {
|
||||
connection = createPhysicalConnection();
|
||||
} catch (SQLException e) {
|
||||
LOG.error("create connection error, url: " + jdbcUrl, e);
|
||||
LOG.error("create connection error, url: " + jdbcUrl + ", errorCode " + e.getErrorCode() + ", state " + e.getSQLState(), e);
|
||||
|
||||
errorCount++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user