From 466d862fba0aff4656713d2fba75421092f6160c Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Sun, 29 May 2022 18:27:05 +0600 Subject: [PATCH] Reduce the verbosity of logs in PooledObjectFactory implementations (#3007) --- src/main/java/redis/clients/jedis/JedisFactory.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/redis/clients/jedis/JedisFactory.java b/src/main/java/redis/clients/jedis/JedisFactory.java index e81eabb358..8b73698e8d 100644 --- a/src/main/java/redis/clients/jedis/JedisFactory.java +++ b/src/main/java/redis/clients/jedis/JedisFactory.java @@ -160,12 +160,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); } } } @@ -182,12 +182,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;