From 14ceda3b0cb8b2055a05c6c6984aa785b8864563 Mon Sep 17 00:00:00 2001 From: Nitin Date: Tue, 2 Feb 2016 20:52:47 +0530 Subject: [PATCH] for re-throwing exception, setting log level to error --- src/main/java/com/zaxxer/hikari/pool/PoolBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zaxxer/hikari/pool/PoolBase.java b/src/main/java/com/zaxxer/hikari/pool/PoolBase.java index fdd40570..ee5ca121 100644 --- a/src/main/java/com/zaxxer/hikari/pool/PoolBase.java +++ b/src/main/java/com/zaxxer/hikari/pool/PoolBase.java @@ -363,7 +363,7 @@ abstract class PoolBase connection.isValid(1); } 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; } } @@ -372,7 +372,7 @@ abstract class PoolBase executeSql(connection, config.getConnectionTestQuery(), false, isIsolateInternalQueries && !isAutoCommit); } 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; } }