raft: better logging for leader transition

fix #1458