raft: logging state change events and events on bad path

we need to do logging when there is something bad happens. 
fixed