raft: better logging for leader transition

fix #1458
well. i tested it by running it. the 2nd output is not easy to generate since in the normal case, all the peers will first lose leader, then elect new leader. i should have checked the local test result though.