mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
change log.error to log.debug
This commit is contained in:
@@ -77,42 +77,47 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
}
|
||||
|
||||
public final static void close(Connection x) {
|
||||
if (x != null) {
|
||||
try {
|
||||
x.close();
|
||||
} catch (Exception e) {
|
||||
LOG.error("close connection error", e);
|
||||
}
|
||||
if (x == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
x.close();
|
||||
} catch (Exception e) {
|
||||
LOG.debug("close connection error", e);
|
||||
}
|
||||
}
|
||||
|
||||
public final static void close(Statement x) {
|
||||
if (x != null) {
|
||||
try {
|
||||
x.close();
|
||||
} catch (Exception e) {
|
||||
LOG.error("close statement error", e);
|
||||
}
|
||||
if (x == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
x.close();
|
||||
} catch (Exception e) {
|
||||
LOG.debug("close statement error", e);
|
||||
}
|
||||
}
|
||||
|
||||
public final static void close(ResultSet x) {
|
||||
if (x != null) {
|
||||
try {
|
||||
x.close();
|
||||
} catch (Exception e) {
|
||||
LOG.error("close resultset error", e);
|
||||
}
|
||||
if (x == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
x.close();
|
||||
} catch (Exception e) {
|
||||
LOG.debug("close resultset error", e);
|
||||
}
|
||||
}
|
||||
|
||||
public final static void close(Closeable x) {
|
||||
if (x != null) {
|
||||
try {
|
||||
x.close();
|
||||
} catch (Exception e) {
|
||||
LOG.error("close error", e);
|
||||
}
|
||||
if (x == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
x.close();
|
||||
} catch (Exception e) {
|
||||
LOG.debug("close error", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user