From 057ae646f2f0e5078baa1ccc579ef95e5e836c3a Mon Sep 17 00:00:00 2001 From: Billy Bao Date: Tue, 28 Oct 2025 14:10:47 +0800 Subject: [PATCH] Fix: logging issues (#10836) ### What problem does this PR solve? Fix: logging issues #10835 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- deepdoc/parser/pdf_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepdoc/parser/pdf_parser.py b/deepdoc/parser/pdf_parser.py index 0ed9073d3..c9f2f34ca 100644 --- a/deepdoc/parser/pdf_parser.py +++ b/deepdoc/parser/pdf_parser.py @@ -1130,7 +1130,7 @@ class RAGFlowPdfParser: bxes = [b for bxs in self.boxes for b in bxs] self.is_english = re.search(r"[\na-zA-Z0-9,/ΒΈ;:'\[\]\(\)!@#$%^&*\"?<>._-]{30,}", "".join([b["text"] for b in random.choices(bxes, k=min(30, len(bxes)))])) - logging.debug("Is it English:", self.is_english) + logging.debug(f"Is it English: {self.is_english}") self.page_cum_height = np.cumsum(self.page_cum_height) assert len(self.page_cum_height) == len(self.page_images) + 1