try {
logger.info("Connecting to redis host=" + redisHost);
Jedis jedis = new Jedis(redisHost);
logger.info("Subscribing to redis channel " + redisChannel);
jedis.subscribe(jedisPubSub, redisChannel);
logger.info("Subscribe returned, closing down");
jedis.quit();
} catch (Exception e) {
logger.error("Redis subscription had an error " + e.getMessage());
fail("redis subscribe hit an error " + e.getMessage());