lib/redis_failover/node.rb in redis_failover-0.4.0 vs lib/redis_failover/node.rb in redis_failover-0.5.0

- old
+ new

@@ -50,18 +50,20 @@ def make_slave!(master) perform_operation do |redis| unless slave_of?(master) redis.slaveof(master.host, master.port) + logger.info("#{self} now a slave of master #{master}") wakeup end end end def make_master! perform_operation do |redis| unless master? redis.slaveof('no', 'one') + logger.info("#{self} is now master") wakeup end end end