for re-throwing exception, setting log level to error

pull/567/head
Nitin 9 years ago
parent 4c2486e4a0
commit 14ceda3b0c

@ -363,7 +363,7 @@ abstract class PoolBase
connection.isValid(1); connection.isValid(1);
} }
catch (Throwable e) { catch (Throwable e) {
LOGGER.warn("{} - Failed to execute isValid() for connection, configure connection test query. ({})", poolName, e.getMessage()); LOGGER.error("{} - Failed to execute isValid() for connection, configure connection test query. ({})", poolName, e.getMessage());
throw e; throw e;
} }
} }
@ -372,7 +372,7 @@ abstract class PoolBase
executeSql(connection, config.getConnectionTestQuery(), false, isIsolateInternalQueries && !isAutoCommit); executeSql(connection, config.getConnectionTestQuery(), false, isIsolateInternalQueries && !isAutoCommit);
} }
catch (Throwable e) { catch (Throwable e) {
LOGGER.warn("{} - Failed to execute connection test query. ({})", poolName, e.getMessage()); LOGGER.error("{} - Failed to execute connection test query. ({})", poolName, e.getMessage());
throw e; throw e;
} }
} }

Loading…
Cancel
Save