From b874c01dc0584178a826145ec44d90ed8f75cc4a Mon Sep 17 00:00:00 2001 From: Nikki <17799906+nikki-t@users.noreply.github.com> Date: Tue, 11 Jun 2024 14:00:31 -0400 Subject: [PATCH] Test response for different Python version unit tests --- earthaccess/utils/_search.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/earthaccess/utils/_search.py b/earthaccess/utils/_search.py index 4466f6dd..2dcf5af9 100644 --- a/earthaccess/utils/_search.py +++ b/earthaccess/utils/_search.py @@ -1,8 +1,12 @@ +import logging + import requests from typing_extensions import Any, List, Union from cmr import CollectionQuery, GranuleQuery, ServiceQuery +logger = logging.getLogger(__name__) + def get_results( session: requests.Session, @@ -43,6 +47,7 @@ def get_results( except requests.exceptions.HTTPError as ex: raise RuntimeError(ex.response.text) from ex + logger.info("RESPONSE: %s", response) latest = response.json()["items"] results.extend(latest)