diff --git a/masterelection/masterelection.go b/masterelection/masterelection.go index deada56e005ce405045f5c6a5a5425596c124dab..231be050d39be71495b70644485324aca1853a91 100644 --- a/masterelection/masterelection.go +++ b/masterelection/masterelection.go @@ -179,10 +179,12 @@ func (m *MasterElection) Run() { if err == nil { // Howdy, we're the master now. Wait a while // and renew our TTL. + log.Printf("masterelection: we are the master") m.runMaster(response.EtcdIndex) } else { // We're not the master. Wait until the lock // is deleted or expires. + log.Printf("masterelection: running as slave (%s)", err) m.runSlave(watchIndex) } }