From 9a30d643ec07eaca0fec11a9422de52bbbb7703c Mon Sep 17 00:00:00 2001 From: jeanveau <jeanveau@gmail.com> Date: Thu, 22 Feb 2024 23:38:35 +0100 Subject: [PATCH] use string formatting to include error message in the log (#11294) --- .../llama_index/vector_stores/weaviate/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama-index-integrations/vector_stores/llama-index-vector-stores-weaviate/llama_index/vector_stores/weaviate/utils.py b/llama-index-integrations/vector_stores/llama-index-vector-stores-weaviate/llama_index/vector_stores/weaviate/utils.py index 432a18ed6b..82ae48ad51 100644 --- a/llama-index-integrations/vector_stores/llama-index-vector-stores-weaviate/llama_index/vector_stores/weaviate/utils.py +++ b/llama-index-integrations/vector_stores/llama-index-vector-stores-weaviate/llama_index/vector_stores/weaviate/utils.py @@ -123,7 +123,7 @@ def to_node(entry: Dict, text_key: str = DEFAULT_TEXT_KEY) -> TextNode: node.text = text node.embedding = embedding except Exception as e: - _logger.debug("Failed to parse Node metadata, fallback to legacy logic.", e) + _logger.debug("Failed to parse Node metadata, fallback to legacy logic. %s", e) metadata, node_info, relationships = legacy_metadata_dict_to_node(entry) node = TextNode( -- GitLab