From 252c185ae0e7ee19b6053fc56bc5d569867e4295 Mon Sep 17 00:00:00 2001 From: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> Date: Wed, 26 Feb 2025 15:50:12 +0100 Subject: [PATCH] chore(html): reduce verbosity in HTML backend Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> --- docling/backend/html_backend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docling/backend/html_backend.py b/docling/backend/html_backend.py index 93e44db6..f2320693 100644 --- a/docling/backend/html_backend.py +++ b/docling/backend/html_backend.py @@ -281,7 +281,7 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend): parent = self.parents[self.level] if parent is None: - _log.warning(f"list-item has no parent in DoclingDocument: {element}") + _log.debug(f"list-item has no parent in DoclingDocument: {element}") return parent_label: str = parent.label index_in_list = len(parent.children) + 1 @@ -338,13 +338,13 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend): parent=parent, ) else: - _log.warning(f"list-item has no text: {element}") + _log.debug(f"list-item has no text: {element}") @staticmethod def parse_table_data(element: Tag) -> Optional[TableData]: nested_tables = element.find("table") if nested_tables is not None: - _log.warning("Skipping nested table.") + _log.debug("Skipping nested table.") return None # Count the number of rows (number of elements)