Skip to content

Commit

Permalink
Reduce the log level of validateObject to WARN (#3750)
Browse files Browse the repository at this point in the history
- Reduce the log level of `JedisFactory#validateObject` to `WARN`
- Reduce the log level of `ConnectionFactory#validateObject` to `WARN`
  • Loading branch information
sazzad16 authored Feb 29, 2024
1 parent ab6f058 commit 3dfa82d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/redis/clients/jedis/ConnectionFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public boolean validateObject(PooledObject<Connection> 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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/redis/clients/jedis/JedisFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public boolean validateObject(PooledObject<Jedis> 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;
}
}
Expand Down

0 comments on commit 3dfa82d

Please sign in to comment.