fix: extend error reporting when verbose logging is enabled (#2017)

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2025-07-30 11:23:26 +02:00 committed by GitHub
parent 86f70128aa
commit 2eb760d060
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(