mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 12:34:22 +00:00
set log level in constructor
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
parent
ca79cbcc2c
commit
c47ee35bc4
@ -203,8 +203,7 @@ class DoclingParseV2DocumentBackend(PdfDocumentBackend):
|
|||||||
super().__init__(path_or_stream, document_hash)
|
super().__init__(path_or_stream, document_hash)
|
||||||
|
|
||||||
self._pdoc = pdfium.PdfDocument(path_or_stream)
|
self._pdoc = pdfium.PdfDocument(path_or_stream)
|
||||||
self.parser = pdf_parser_v2()
|
self.parser = pdf_parser_v2("fatal")
|
||||||
self.parser.set_loglevel(0)
|
|
||||||
|
|
||||||
success = False
|
success = False
|
||||||
if isinstance(path_or_stream, BytesIO):
|
if isinstance(path_or_stream, BytesIO):
|
||||||
|
Loading…
Reference in New Issue
Block a user