control debug logging for state generation