Skip to content

Commit 44c7a0e

Browse files
committed
move log to info
1 parent 9439add commit 44c7a0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unstructured_client/_hooks/custom/pdf_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def is_pdf(file: shared.Files) -> bool:
6969
content = cast(bytes, file.content)
7070
PdfReader(io.BytesIO(content), strict=True)
7171
except (PdfReadError, UnicodeDecodeError):
72+
logger.info("Loading PDF failed, so splitting is not enabled.")
7273
return False
7374

7475
return True

0 commit comments

Comments
 (0)