From b266c1732498e047da5098bbdb068d7a3cee00af Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Sun, 29 May 2022 18:13:49 +0600 Subject: [PATCH] Reduce the verbosity of logs in PooledObjectFactory implementations --- src/main/java/redis/clients/jedis/ConnectionFactory.java | 8 ++++---- src/main/java/redis/clients/jedis/JedisFactory.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/redis/clients/jedis/ConnectionFactory.java b/src/main/java/redis/clients/jedis/ConnectionFactory.java index b7af747093..9df2ac25e3 100644 --- a/src/main/java/redis/clients/jedis/ConnectionFactory.java +++ b/src/main/java/redis/clients/jedis/ConnectionFactory.java @@ -54,12 +54,12 @@ public void destroyObject(PooledObject pooledConnection) throws Exce jedis.quit(); } } catch (RuntimeException e) { - logger.warn("Error while QUIT", e); + logger.debug("Error while QUIT", e); } try { jedis.close(); } catch (RuntimeException e) { - logger.warn("Error while close", e); + logger.debug("Error while close", e); } } } @@ -76,12 +76,12 @@ public PooledObject makeObject() throws Exception { try { jedis.quit(); } catch (RuntimeException e) { - logger.warn("Error while QUIT", e); + logger.debug("Error while QUIT", e); } try { jedis.close(); } catch (RuntimeException e) { - logger.warn("Error while close", e); + logger.debug("Error while close", e); } } throw je; diff --git a/src/main/java/redis/clients/jedis/JedisFactory.java b/src/main/java/redis/clients/jedis/JedisFactory.java index fcce26025c..cd55e5168c 100644 --- a/src/main/java/redis/clients/jedis/JedisFactory.java +++ b/src/main/java/redis/clients/jedis/JedisFactory.java @@ -164,12 +164,12 @@ public void destroyObject(PooledObject pooledJedis) throws Exception { jedis.quit(); } } catch (RuntimeException e) { - logger.warn("Error while QUIT", e); + logger.debug("Error while QUIT", e); } try { jedis.close(); } catch (RuntimeException e) { - logger.warn("Error while close", e); + logger.debug("Error while close", e); } } } @@ -186,12 +186,12 @@ public PooledObject makeObject() throws Exception { try { jedis.quit(); } catch (RuntimeException e) { - logger.warn("Error while QUIT", e); + logger.debug("Error while QUIT", e); } try { jedis.close(); } catch (RuntimeException e) { - logger.warn("Error while close", e); + logger.debug("Error while close", e); } } throw je;