raft: better logging for leader transition

fix #1458
I'd really like to see you run this code and look at the output before you propose the change. You're missing the second %x argument here.