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 authored and marcosnils committed Oct 29, 2015
1 parent 5c75e3c commit b3b12b9
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 @@ -313,12 +313,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 b3b12b9

Please sign in to comment.