fix: suppress pdfminer warnings to prevent upload halting

- Added warning suppression for pdfminer warnings during Docling PDF processing
- Suppresses 'Cannot set gray non-stroke color' warnings that cause uploads to halt
- Temporarily sets pdfminer logger to ERROR level during document processing
- Fixes issue where files ~34MB would fail due to pdfminer warning spam

Resolves issue where PDF uploads would halt with repeated pdfminer warnings
This commit is contained in:
Chirag 2025-11-01 17:42:23 +05:30
parent 57fd82f17f
commit 094bdfad45
2 changed files with 40 additions and 2 deletions

View file

@ -1,3 +1,14 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["app"]
include-package-data = false
[tool.setuptools.package-data]
app = ["**/*"]
[project]
name = "surf-new-backend"
version = "0.0.8"