Optimize error log
This commit is contained in:
parent
3aab5b41f2
commit
7f09972901
1 changed files with 5 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue