Adds some debugging output in LearnerState and ElectionContext