From 2eb760d060911102be6f58fc1322b648e11099ab Mon Sep 17 00:00:00 2001 From: Michele Dolfi <97102151+dolfim-ibm@users.noreply.github.com> Date: Wed, 30 Jul 2025 11:23:26 +0200 Subject: [PATCH] fix: extend error reporting when verbose logging is enabled (#2017) Signed-off-by: Michele Dolfi --- docling/cli/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docling/cli/main.py b/docling/cli/main.py index ae275ea9..c6948338 100644 --- a/docling/cli/main.py +++ b/docling/cli/main.py @@ -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(