From 64d0df0caa70f49b20b65cd341ee2d2a7700b0e0 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 24 Jun 2025 00:45:17 +0800 Subject: [PATCH] Remove debug logging from Neo4J operations - Delete node upsert debug log - Remove edge upsert debug messages --- lightrag/kg/neo4j_impl.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lightrag/kg/neo4j_impl.py b/lightrag/kg/neo4j_impl.py index 3c57ae34..06315d76 100644 --- a/lightrag/kg/neo4j_impl.py +++ b/lightrag/kg/neo4j_impl.py @@ -766,9 +766,6 @@ class Neo4JStorage(BaseGraphStorage): result = await tx.run( query, entity_id=node_id, properties=properties ) - logger.debug( - f"Upserted node with entity_id '{node_id}' and properties: {properties}" - ) await result.consume() # Ensure result is fully consumed await session.execute_write(execute_upsert) @@ -824,12 +821,7 @@ class Neo4JStorage(BaseGraphStorage): properties=edge_properties, ) try: - records = await result.fetch(2) - if records: - logger.debug( - f"Upserted edge from '{source_node_id}' to '{target_node_id}'" - f"with properties: {edge_properties}" - ) + await result.fetch(2) finally: await result.consume() # Ensure result is consumed