mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-01 06:52:05 +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:
|
else:
|
||||||
_log.warning(f"Document {conv_res.input.file} failed to convert.")
|
_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
|
failure_count += 1
|
||||||
|
|
||||||
_log.info(
|
_log.info(
|
||||||
|
Loading…
Reference in New Issue
Block a user