diff --git a/src/main/java/redis/clients/jedis/ConnectionFactory.java b/src/main/java/redis/clients/jedis/ConnectionFactory.java index d286462347..3500a21172 100644 --- a/src/main/java/redis/clients/jedis/ConnectionFactory.java +++ b/src/main/java/redis/clients/jedis/ConnectionFactory.java @@ -76,7 +76,7 @@ public boolean validateObject(PooledObject pooledConnection) { // check HostAndPort ?? return jedis.isConnected() && jedis.ping(); } catch (final Exception e) { - logger.error("Error while validating pooled Connection object.", e); + logger.warn("Error while validating pooled Connection object.", e); return false; } } diff --git a/src/main/java/redis/clients/jedis/JedisFactory.java b/src/main/java/redis/clients/jedis/JedisFactory.java index b84e2b05ae..0e07ccc286 100644 --- a/src/main/java/redis/clients/jedis/JedisFactory.java +++ b/src/main/java/redis/clients/jedis/JedisFactory.java @@ -197,7 +197,7 @@ public boolean validateObject(PooledObject pooledJedis) { && jedis.getConnection().isConnected() && jedis.ping().equals("PONG"); } catch (final Exception e) { - logger.error("Error while validating pooled Jedis object.", e); + logger.warn("Error while validating pooled Jedis object.", e); return false; } }