var redis = require('redis');

var redisUrl = require('parse-redis-url')(redis);
var options = redisUrl.parse(process.env.REDIS_URL);
console.log(options);
var client;


function strongConnect(){
  console.log(options);
  client = redis.createClient(options.port, options.host);
  client.on('error', function(err){
    console.log("global redis error: " + err);
    strongConnect();
  });


  if(options.password){
    client.auth(options.password, function(err){
      console.log(err);
    })
  }

  if(!process.env.REDIS_URL){
    client.select(options.database || nconf.get('redis:db'), function(){});
  }
  if(module.exports){
    module.exports.db = client;
  }
}
strongConnect()

module.exports = {
  user : require('./user.js')(client),
  room : require('./room.js')(client),
  message: require('./message.js')(client),
  db : client
}

@@ -127,38 +127,16 @@
 S_URL);%0A
-console.log(options);%0A
 var clie
@@ -171,32 +171,8 @@
 ()%7B%0A
-  console.log(options);%0A
   cl

remove console log