It logs the state name.