Skip to content

Commit

Permalink
Log original exception at sentinel lost
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyurci committed Oct 29, 2015
1 parent f84ab56 commit 02ee213
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/redis/clients/jedis/JedisSentinelPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ public void onMessage(String channel, String message) {
} catch (JedisConnectionException e) {

if (running.get()) {
log.severe("Lost connection to Sentinel at " + host + ":" + port
+ ". Sleeping 5000ms and retrying.");
log.log(Level.SEVERE, "Lost connection to Sentinel at " + host + ":" + port
+ ". Sleeping 5000ms and retrying.", e);
try {
Thread.sleep(subscribeRetryWaitTimeMillis);
} catch (InterruptedException e1) {
e1.printStackTrace();
log.log(Level.SEVERE, "Sleep interrupted: ", e1);
}
} else {
log.fine("Unsubscribing from Sentinel at " + host + ":" + port);
Expand Down

0 comments on commit 02ee213

Please sign in to comment.