Add traceback logging for extraction errors
This commit is contained in:
parent
db6e235b98
commit
b4c7f67b00
1 changed files with 3 additions and 1 deletions
|
|
@ -122,7 +122,9 @@ class LLMGraphBuilderService:
|
|||
except Exception as e:
|
||||
fail_count += 1
|
||||
last_error = e
|
||||
logger.error(f"Chunk {i+1} extraction failed: {e}")
|
||||
import traceback
|
||||
logger.error(f"Chunk {i+1} extraction failed: {type(e).__name__}: {e}")
|
||||
logger.error(f"Chunk {i+1} traceback: {traceback.format_exc()}")
|
||||
if progress_callback:
|
||||
progress_callback(f"Chunk {i+1} error: {e}", (i + 1) / total)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue