Skip to content
Snippets Groups Projects
Commit 421a58c5 authored by ale's avatar ale
Browse files

log state changes

parent 83c3c37f
Branches upstream
No related tags found
No related merge requests found
......@@ -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)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment