raft: better logging for leader transition

fix #1458
right. fixed. writing printf is killing me.