mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
ignore Closed Connection error, fix #3836
This commit is contained in:
@@ -105,7 +105,17 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
try {
|
||||
x.close();
|
||||
} catch (Exception e) {
|
||||
LOG.debug("close statement error", e);
|
||||
boolean printError = true;
|
||||
|
||||
if (e instanceof java.sql.SQLRecoverableException
|
||||
&& "Closed Connection".equals(e.getMessage())
|
||||
) {
|
||||
printError = false;
|
||||
}
|
||||
|
||||
if (printError) {
|
||||
LOG.debug("close statement error", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user