Skip to content

Commit

Permalink
Reduce the verbosity of logs in PooledObjectFactory implementations (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed May 29, 2022
1 parent c03d71f commit 466d862
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/redis/clients/jedis/JedisFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ public void destroyObject(PooledObject<Jedis> 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);
}
}
}
Expand All @@ -182,12 +182,12 @@ public PooledObject<Jedis> 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;
Expand Down

0 comments on commit 466d862

Please sign in to comment.