Merge pull request #91 from fengjingchao/master

Simple master failover testing
more logging