Suppress non-actionable pdf indexing warning from logs

This commit is contained in:
Debanjum
2025-07-10 22:46:28 -07:00
parent 05176cd62b
commit d27aac7f13

View File

@@ -20,6 +20,7 @@ from khoj.utils.helpers import in_debug_mode, is_env_var_true
# Ignore non-actionable warnings
warnings.filterwarnings("ignore", message=r"snapshot_download.py has been made private", category=FutureWarning)
warnings.filterwarnings("ignore", message=r"legacy way to download files from the HF hub,", category=FutureWarning)
warnings.filterwarnings("ignore", message=r"Warning: Empty content on page \d+ of document", category=UserWarning)
import uvicorn