raft: logging state change events and events on bad path