diff --git a/services/search.py b/services/search.py index c4998628..ea7b8866 100644 --- a/services/search.py +++ b/services/search.py @@ -139,7 +139,12 @@ class SearchService: if isinstance(result, dict): mapping = result.get(self.index_name, {}).get("mappings") if mapping and mapping != expected_mapping: - logger.debug(f"Найдена структура индексации: {mapping}") + logger.debug("Найдена структура индексации:") + logger.debug("\n" + json.dumps(mapping, indent=2, ensure_ascii=False)) + + logger.debug("Ожидаемая структура индексации:") + logger.debug("\n" + json.dumps(expected_mapping, indent=2, ensure_ascii=False)) + logger.warn( "[!!!] Требуется другая структура индексации и переиндексация всех данных" )