mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-31 06:24:25 +00:00
fix: extend error reporting when verbose logging is enabled (#2017)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
parent
86f70128aa
commit
2eb760d060
@ -262,6 +262,12 @@ def export_documents(
|
||||
|
||||
else:
|
||||
_log.warning(f"Document {conv_res.input.file} failed to convert.")
|
||||
if _log.isEnabledFor(logging.INFO):
|
||||
for err in conv_res.errors:
|
||||
_log.info(
|
||||
f" [Failure Detail] Component: {err.component_type}, "
|
||||
f"Module: {err.module_name}, Message: {err.error_message}"
|
||||
)
|
||||
failure_count += 1
|
||||
|
||||
_log.info(
|
||||
|
Loading…
Reference in New Issue
Block a user