Added option to disable logging to redis.