Skip to content

Commit f09c4eb

Browse files
committed
added some logging
1 parent 955d852 commit f09c4eb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

eoapi_maps_plugin/plugin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
)
77
import requests
88
from urllib.parse import urlparse
9+
import logging
10+
11+
LOGGER = logging.getLogger(__name__)
912

1013

1114
class EOAPIProvider(BaseProvider):
@@ -44,6 +47,7 @@ def query(
4447
}
4548
eoapi_search_url = f"{eoapi_raster_url}/searches/register"
4649
response = requests.post(eoapi_search_url, json=search_data)
50+
LOGGER.debug(f"POST: {response.url} with {search_data}")
4751
self._handle_upstream_error(response.text, response.status_code)
4852

4953
search_id = response.json()["id"]
@@ -63,6 +67,7 @@ def query(
6367
),
6468
params=render_data,
6569
)
70+
LOGGER.debug(f"GET: {response.url}")
6671
self._handle_upstream_error(response.text, response.status_code)
6772

6873
return response.content

scripts/sync.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ def get_stacapi_pygeoapi_diff(
4646
if collection.get("keywords", []) != pygeoapi_resource["keywords"]:
4747
diff["keywords"] = collection["keywords"]
4848

49-
if collection["links"] != pygeoapi_resource["links"]:
50-
diff["links"] = collection["links"]
51-
5249
if collection["title"] != pygeoapi_resource["title"]:
5350
diff["title"] = collection["title"]
5451

0 commit comments

Comments
 (0)