Skip to content

Commit 067cc6b

Browse files
committed
fix: remove some unnecessary logging
1 parent cccfc0f commit 067cc6b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

stac_search/agents/collections_search.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ async def collection_search(
8989
logger.info(f"Model loading time: {load_model_time - start_time:.4f} seconds")
9090

9191
client = chromadb.PersistentClient(path=data_path)
92-
logger.info(client.list_collections())
9392
collection_name = f"{stac_catalog_name}_collections"
9493
collection = client.get_collection(name=collection_name)
9594

stac_search/agents/items_search.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,7 @@ def get_polygon_from_geodini(location: str):
249249
)
250250
result = response.json().get("result", None)
251251
if result:
252-
polygon = result.get("geometry")
253-
logger.info(
254-
f"Found polygon for {location}: {pformat(mapping(shape(polygon).simplify(tolerance=0.1)))}"
255-
)
256-
return polygon
252+
return result.get("geometry", None)
257253
return None
258254

259255

@@ -270,7 +266,6 @@ async def item_search(ctx: Context) -> ItemSearchResult:
270266
results = await search_items_agent.run(
271267
f"Find items for the query: {ctx.query}", deps=ctx
272268
)
273-
logger.info(results.data)
274269

275270
# determine the collections to search
276271
target_collections = await search_collections(ctx.query) or []

0 commit comments

Comments
 (0)