[logs] Use the state data from the leader, not any master