mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-11-09 06:13:47 +00:00
Optimize error log
This commit is contained in:
parent
3aab5b41f2
commit
7f09972901
@ -1114,9 +1114,11 @@ class LightRAG:
|
|||||||
llm_response_cache=self.llm_response_cache,
|
llm_response_cache=self.llm_response_cache,
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(
|
error_msg = f"Failed to extract entities and relationships: {str(e)}"
|
||||||
f"Failed to extract entities and relationships : {traceback.format_exc()}"
|
logger.error(error_msg)
|
||||||
)
|
async with pipeline_status_lock:
|
||||||
|
pipeline_status["latest_message"] = error_msg
|
||||||
|
pipeline_status["history_messages"].append(error_msg)
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
async def _insert_done(
|
async def _insert_done(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user