From c344fcee2d8ec2fbc73fc6ce5330114fa26f2ede Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Fri, 2 May 2025 18:28:06 -0300 Subject: [PATCH] refactoring(search.py): logs for search-combine and search-authors are equal --- services/search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/search.py b/services/search.py index 69c8f852..f83e4050 100644 --- a/services/search.py +++ b/services/search.py @@ -696,8 +696,6 @@ class SearchService: if not isinstance(text, str) or not text.strip(): return [] - logger.info(f"Searching for: '{text}' (limit={limit}, offset={offset})") - # Check if we can serve from cache if SEARCH_CACHE_ENABLED: has_cache = await self.cache.has_query(text) @@ -714,7 +712,9 @@ class SearchService: search_limit = SEARCH_PREFETCH_SIZE else: search_limit = limit - + + logger.info(f"Searching for: '{text}' (limit={limit}, offset={offset}, search_limit={search_limit})") + response = await self.client.post( "/search-combined", json={"text": text, "limit": search_limit},